Bug 1101020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc
This commit is contained in:
@@ -363,9 +363,10 @@ void nsDisplayMathMLBar::Paint(nsDisplayListBuilder* aBuilder,
|
||||
{
|
||||
// paint the bar with the current text color
|
||||
DrawTarget* drawTarget = aCtx->GetDrawTarget();
|
||||
Rect rect = NSRectToSnappedRect(mRect + ToReferenceFrame(),
|
||||
mFrame->PresContext()->AppUnitsPerDevPixel(),
|
||||
*drawTarget);
|
||||
Rect rect =
|
||||
NSRectToNonEmptySnappedRect(mRect + ToReferenceFrame(),
|
||||
mFrame->PresContext()->AppUnitsPerDevPixel(),
|
||||
*drawTarget);
|
||||
ColorPattern color(ToDeviceColor(
|
||||
mFrame->GetVisitedDependentColor(eCSSProperty_color)));
|
||||
drawTarget->FillRect(rect, color);
|
||||
|
||||
Reference in New Issue
Block a user