Title: [115259] branches/subpixellayout/Source/WebCore/platform/graphics/FractionalLayoutRect.cpp
Revision
115259
Author
e...@chromium.org
Date
2012-04-25 16:51:06 -0700 (Wed, 25 Apr 2012)

Log Message

Fix enclosingFractionalLayoutRect for 1/1 on branch.

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/platform/graphics/FractionalLayoutRect.cpp (115258 => 115259)


--- branches/subpixellayout/Source/WebCore/platform/graphics/FractionalLayoutRect.cpp	2012-04-25 23:39:26 UTC (rev 115258)
+++ branches/subpixellayout/Source/WebCore/platform/graphics/FractionalLayoutRect.cpp	2012-04-25 23:51:06 UTC (rev 115259)
@@ -139,9 +139,13 @@
 
 FractionalLayoutRect enclosingFractionalLayoutRect(const FloatRect& rect)
 {
+#if ENABLE(SUBPIXEL_LAYOUT)
     return FractionalLayoutRect(rect.x(), rect.y(),
                      rect.maxX() - rect.x() + FractionalLayoutUnit::epsilon(),
                      rect.maxY() - rect.y() + FractionalLayoutUnit::epsilon());
+#else
+    return enclosingIntRect(rect);
+#endif
 }
 
 IntRect pixelSnappedIntRect(const FractionalLayoutRect& rect)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to