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

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

Issue 1331053002: Propagate resource-triggered repaints to text node children of <text> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Name/comment updates. Created 5 years, 3 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 | « Source/core/layout/svg/LayoutSVGInline.cpp ('k') | Source/core/layout/svg/LayoutSVGText.h » ('j') | 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 c0366122d6e3f407adbbaca50e2da5219130eac7..8b46803e094506c34d4b7c6286ce423f1d943d8e 100644
--- a/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -165,7 +165,12 @@ void LayoutSVGResourceContainer::markClientForInvalidation(LayoutObject* client,
client->setNeedsBoundariesUpdate();
break;
case PaintInvalidation:
- client->setShouldDoFullPaintInvalidation();
+ // Since LayoutSVGInlineTexts don't have SVGResources (they use their
+ // parent's), they will not be notified of changes to paint servers. So
+ // if the client is one that could have a LayoutSVGInlineText use a
+ // paint invalidation reason that will force paint invalidation of the
+ // entire <text>/<tspan>/... subtree.
+ client->setShouldDoFullPaintInvalidation(PaintInvalidationSVGResourceChange);
break;
case ParentOnlyInvalidation:
break;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInline.cpp ('k') | Source/core/layout/svg/LayoutSVGText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698