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

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: 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
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..1343647f54d1b5d33a0edfb2581f22a4f691b41d 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -223,6 +223,11 @@ void LayoutSVGResourceContainer::registerResource()
if (!layoutObject)
continue;
+ // If the client is has a layer (is a non-SVGElement) we need to signal
kouhei (in TOK) 2015/04/08 17:14:41 s/is has/has/
fs 2015/04/08 17:26:04 Done.
+ // invalidation in the same way as is done in markAllClientLayersForInvalidation above.
+ if (layoutObject->hasLayer() && resourceType() == FilterResourceType)
+ toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation();
kouhei (in TOK) 2015/04/08 17:14:41 Would it make sense to do a early "continue" here,
fs 2015/04/08 17:26:04 I believe we still want to do the setNeedsLayoutAn
kouhei (in TOK) 2015/04/08 17:28:50 Thanks for the explanation. No strong opinion here
fs 2015/04/08 17:34:16 Hmm, it's quite possible that the "filter update h
fs 2015/04/09 10:21:33 Ended up doing like this suggests, because I concl
+
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') | Source/core/layout/svg/SVGResourcesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698