Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp

Issue 2413783002: Revert of Use enclosingLayoutRect instead of enclosingIntRect in SVGLayoutSupport::transformPaintInvalidation… (Closed)
Patch Set: Remove bad rebaseline on Win7 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
index 424f5f76af66ac7a2e5cacdc3e2bcfc8be7730db..50d328daf0bee3da525922017531e90fa257ea63 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
@@ -115,7 +115,10 @@ LayoutRect SVGLayoutSupport::transformPaintInvalidationRect(
if (adjustedRect.isEmpty())
return LayoutRect();
- return enclosingLayoutRect(adjustedRect);
+ // Use enclosingIntRect because we cannot properly apply subpixel offset of
+ // the SVGRoot since we don't know the desired subpixel accumulation at this
+ // point.
+ return LayoutRect(enclosingIntRect(adjustedRect));
}
static const LayoutSVGRoot& computeTransformToSVGRoot(

Powered by Google App Engine
This is Rietveld 408576698