Bug 1083753, part 2 - Port the code that uses nsRenderingContext::FillRect(nsRect) to Moz2D. r=mattwoodrow

This commit is contained in:
Jonathan Watt
2014-10-19 13:22:22 +01:00
parent 6a0b572f7b
commit 40da0a5dbd
16 changed files with 108 additions and 141 deletions

View File

@@ -365,8 +365,13 @@ void nsDisplayMathMLBar::Paint(nsDisplayListBuilder* aBuilder,
nsRenderingContext* aCtx)
{
// paint the bar with the current text color
aCtx->SetColor(mFrame->GetVisitedDependentColor(eCSSProperty_color));
aCtx->FillRect(mRect + ToReferenceFrame());
DrawTarget* drawTarget = aCtx->GetDrawTarget();
Rect rect = NSRectToRect(mRect + ToReferenceFrame(),
mFrame->PresContext()->AppUnitsPerDevPixel(),
*drawTarget);
ColorPattern color(ToDeviceColor(
mFrame->GetVisitedDependentColor(eCSSProperty_color)));
drawTarget->FillRect(rect, color);
}
void