Title: [165671] trunk/Source/WebCore
- Revision
- 165671
- Author
- za...@apple.com
- Date
- 2014-03-14 20:16:37 -0700 (Fri, 14 Mar 2014)
Log Message
Subpixel rendering: border-radius painting falls back to rectangle at subpixel positions.
https://bugs.webkit.org/show_bug.cgi?id=130272
Unreviewed. Missing piece from http://trac.webkit.org/changeset/165670
* platform/graphics/RoundedRect.cpp:
(WebCore::RoundedRect::pixelSnappedRoundedRectForPainting):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (165670 => 165671)
--- trunk/Source/WebCore/ChangeLog 2014-03-15 02:42:07 UTC (rev 165670)
+++ trunk/Source/WebCore/ChangeLog 2014-03-15 03:16:37 UTC (rev 165671)
@@ -3,6 +3,16 @@
Subpixel rendering: border-radius painting falls back to rectangle at subpixel positions.
https://bugs.webkit.org/show_bug.cgi?id=130272
+ Unreviewed. Missing piece from http://trac.webkit.org/changeset/165670
+
+ * platform/graphics/RoundedRect.cpp:
+ (WebCore::RoundedRect::pixelSnappedRoundedRectForPainting):
+
+2014-03-14 Zalan Bujtas <za...@apple.com>
+
+ Subpixel rendering: border-radius painting falls back to rectangle at subpixel positions.
+ https://bugs.webkit.org/show_bug.cgi?id=130272
+
Reviewed by Simon Fraser.
Rounded rectangle's radius needs adjustment after its containing rect gets pixel snapped.
Modified: trunk/Source/WebCore/platform/graphics/RoundedRect.cpp (165670 => 165671)
--- trunk/Source/WebCore/platform/graphics/RoundedRect.cpp 2014-03-15 02:42:07 UTC (rev 165670)
+++ trunk/Source/WebCore/platform/graphics/RoundedRect.cpp 2014-03-15 03:16:37 UTC (rev 165671)
@@ -239,7 +239,7 @@
FloatRoundedRect RoundedRect::pixelSnappedRoundedRectForPainting(float deviceScaleFactor) const
{
- const LayoutRect& originalRect = rect();
+ LayoutRect originalRect = rect();
FloatRect paintingRect = pixelSnappedForPainting(rect(), deviceScaleFactor);
FloatRoundedRect::Radii paintingRadii = radii();
paintingRadii.shrink(paintingRect.y() - originalRect.y(), originalRect.maxY() - paintingRect.maxY(), paintingRect.x() - originalRect.x(), originalRect.maxX() - paintingRect.maxX());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes