Bug 1101571 - List-style discs are all wobbly during vertical transitions. r=mattwoodrow
authorJonathan Watt <jwatt@jwatt.org>
Fri, 21 Nov 2014 15:48:05 +0000
changeset 243451 4019b458cab756d7c8fddadccafa1fb089c0019c
parent 243450 e43fd991c15cb03804f98d6181e22f77187cdf37
child 243452 e497957b79b228deef38b8c62bd4893093cb13df
push id660
push userraliiev@mozilla.com
push dateWed, 18 Feb 2015 20:30:48 +0000
treeherdermozilla-release@49e493494178 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1101571
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1101571 - List-style discs are all wobbly during vertical transitions. r=mattwoodrow
layout/generic/nsBulletFrame.cpp
--- a/layout/generic/nsBulletFrame.cpp
+++ b/layout/generic/nsBulletFrame.cpp
@@ -313,18 +313,17 @@ nsBulletFrame::PaintBullet(nsRenderingCo
 
   case NS_STYLE_LIST_STYLE_DISC:
   case NS_STYLE_LIST_STYLE_CIRCLE:
     {
       nsRect rect(padding.left + aPt.x,
                   padding.top + aPt.y,
                   mRect.width - (padding.left + padding.right),
                   mRect.height - (padding.top + padding.bottom));
-      Rect devPxRect =
-        NSRectToSnappedRect(rect, appUnitsPerDevPixel, *drawTarget);
+      Rect devPxRect = NSRectToRect(rect, appUnitsPerDevPixel);
       RefPtr<PathBuilder> builder = drawTarget->CreatePathBuilder();
       AppendEllipseToPath(builder, devPxRect.Center(), devPxRect.Size());
       RefPtr<Path> ellipse = builder->Finish();
       if (listStyleType->GetStyle() == NS_STYLE_LIST_STYLE_DISC) {
         drawTarget->Fill(ellipse, color);
       } else {
         drawTarget->Stroke(ellipse, color);
       }