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

Unified Diff: Source/core/rendering/svg/RenderSVGTransformableContainer.cpp

Issue 408273003: Reset m_didTransformToRootUpdate flag during invalidationTreeIfNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reset the flag only after invalidation Created 6 years, 5 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/rendering/svg/RenderSVGTransformableContainer.cpp
diff --git a/Source/core/rendering/svg/RenderSVGTransformableContainer.cpp b/Source/core/rendering/svg/RenderSVGTransformableContainer.cpp
index 7778c9d5e347d1b983fd24bfc4ab7c79630e31f4..71420f28c608013d940795df0251746f478e90dc 100644
--- a/Source/core/rendering/svg/RenderSVGTransformableContainer.cpp
+++ b/Source/core/rendering/svg/RenderSVGTransformableContainer.cpp
@@ -96,7 +96,9 @@ bool RenderSVGTransformableContainer::calculateLocalTransform()
m_lastTranslation = translation;
}
- m_didTransformToRootUpdate = m_needsTransformUpdate || SVGRenderSupport::transformToRootChanged(parent());
+ if (m_needsTransformUpdate || SVGRenderSupport::transformToRootChanged(parent()))
+ m_didTransformToRootUpdate = true;
dsinclair 2014/07/23 19:20:59 I don't think we want to do this. We use this flag
Xianzhu 2014/07/23 19:39:04 I think the full invalidation on transform change
Julien - ping for review 2014/07/23 20:05:24 I agree with Xianzhu on this one, it's conceptuall
fs 2014/07/24 08:43:56 If there's N layouts to one repaint, and the conta
+
if (!m_needsTransformUpdate)
return false;
@@ -106,4 +108,12 @@ bool RenderSVGTransformableContainer::calculateLocalTransform()
return true;
}
+void RenderSVGTransformableContainer::clearPaintInvalidationState()
+{
+ RenderSVGContainer::clearPaintInvalidationState();
+
+ ASSERT(!m_needsTransformUpdate);
+ m_didTransformToRootUpdate = false;
+}
+
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGTransformableContainer.h ('k') | Source/core/rendering/svg/RenderSVGViewportContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698