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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceContainer.cpp

Issue 1068073005: Handle layer clients in LayoutSVGResourceContainer::registerResource (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Continue in loop Created 5 years, 8 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
« no previous file with comments | « LayoutTests/css3/filters/effect-reference-rename-2-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 49f9c02bc841d1c3b2d773d35c81165cbe7e0d74..bb65af88461ff530c4a8bf482a350ff15e953fac 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -223,6 +223,13 @@ void LayoutSVGResourceContainer::registerResource()
if (!layoutObject)
continue;
+ // If the client has a layer (is a non-SVGElement) we need to signal
+ // invalidation in the same way as is done in markAllClientLayersForInvalidation above.
+ if (layoutObject->hasLayer() && resourceType() == FilterResourceType) {
+ toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation();
+ continue;
+ }
+
StyleDifference diff;
diff.setNeedsFullLayout();
SVGResourcesCache::clientStyleChanged(layoutObject, diff, layoutObject->styleRef());
« no previous file with comments | « LayoutTests/css3/filters/effect-reference-rename-2-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698