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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.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
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
index 8e1c323fb74e571ab5ba567be66f959701923e2f..864ae5b83e1799378b83f349152290e3f8885597 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
@@ -108,6 +108,9 @@ bool LayoutSVGImage::updateBoundingBox() {
if (element())
element()->setNeedsResizeObserverUpdate();
+ if (oldBoundaries != m_objectBoundingBox)
pdr. 2016/10/31 20:49:05 Can we use m_needsBoundariesUpdate here?
Xianzhu 2016/10/31 22:10:30 It may be true before this check. Combined the tw
+ setShouldDoFullPaintInvalidation();
+
return oldBoundaries.size() != m_objectBoundingBox.size();
}

Powered by Google App Engine
This is Rietveld 408576698