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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2276073002: Fix invalidation of absolute sized SVG content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 691734c6f921a96e44ac6dc707bae503e4cce547..81dbec96ceec50174735990d09667b889c9b2688 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -412,6 +412,14 @@ void LayoutBoxModelObject::invalidateTreeIfNeeded(const PaintInvalidationState&
&& (hasOverflowClip() || isLayoutView()))
newPaintInvalidationState.setForceSubtreeInvalidationRectUpdateWithinContainer();
+ // Another variant of crbug.com/490725 -- absolute sized SVG content must be
+ // forcibly invalidated when the paint invalidation rect changes.
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()
+ && isSVG()
+ && previousPaintInvalidationRect != this->previousPaintInvalidationRect()
+ && !styleRef().isOverflowVisible())
+ newPaintInvalidationState.setForceSubtreeInvalidationRectUpdateWithinContainer();
+
newPaintInvalidationState.updateForChildren(reason);
invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
}

Powered by Google App Engine
This is Rietveld 408576698