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

Unified Diff: Source/core/layout/svg/LayoutSVGInline.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.h ('k') | Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGInline.cpp
diff --git a/Source/core/layout/svg/LayoutSVGInline.cpp b/Source/core/layout/svg/LayoutSVGInline.cpp
index c8b0aad920fff437ccc51ec6a7f74fbdd965ad24..b6d42c03e983955257c677ed3426c67a79af388c 100644
--- a/Source/core/layout/svg/LayoutSVGInline.cpp
+++ b/Source/core/layout/svg/LayoutSVGInline.cpp
@@ -150,4 +150,23 @@ void LayoutSVGInline::removeChild(LayoutObject* child)
textLayoutObject->subtreeChildWasRemoved(affectedAttributes);
}
+void LayoutSVGInline::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidationState)
+{
+ ASSERT(!needsLayout());
+
+ if (!shouldCheckForPaintInvalidation(paintInvalidationState))
+ return;
+
+ PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paintInvalidationContainer());
+ clearPaintInvalidationState(paintInvalidationState);
+
+ if (reason == PaintInvalidationDelayedFull)
+ paintInvalidationState.pushDelayedPaintInvalidationTarget(*this);
+
+ PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, paintInvalidationState.paintInvalidationContainer());
+ if (reason == PaintInvalidationSVGResourceChange)
+ childTreeWalkState.setForceSubtreeInvalidationWithinContainer();
+ invalidatePaintOfSubtreesIfNeeded(childTreeWalkState);
+}
+
}
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInline.h ('k') | Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698