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

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

Issue 2458233002: Fix under-invalidation on SVG shape/image resize in subpixels (Closed)
Patch Set: - Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
index 266baa1a00c48b4f8aab03fb8e9124c762c500c4..012b4313806e82a1535f271e12871196e012402b 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
@@ -184,7 +184,10 @@ void LayoutSVGShape::layout() {
// feeds into the paint invalidation rect - so we need to call it for both
// the shape-update and the bounds-update flag, since .
if (m_needsShapeUpdate || m_needsBoundariesUpdate) {
+ FloatRect oldObjectBoundingBox = objectBoundingBox();
updateShapeFromElement();
+ if (oldObjectBoundingBox != objectBoundingBox())
+ setShouldDoFullPaintInvalidation();
m_needsShapeUpdate = false;
m_paintInvalidationBoundingBox = strokeBoundingBox();
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698