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

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

Issue 408273003: Reset m_didTransformToRootUpdate flag during invalidationTreeIfNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Based on https://codereview.chromium.org/389573008/ 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.h
diff --git a/Source/core/rendering/svg/RenderSVGTransformableContainer.h b/Source/core/rendering/svg/RenderSVGTransformableContainer.h
index 1103a3b38855a09218788056ebe2450d4350b2cb..dcb086d05a3e8c6fb82b5860a1ad13fbcf09fbc3 100644
--- a/Source/core/rendering/svg/RenderSVGTransformableContainer.h
+++ b/Source/core/rendering/svg/RenderSVGTransformableContainer.h
@@ -35,12 +35,17 @@ public:
virtual bool isSVGTransformableContainer() const OVERRIDE { return true; }
virtual const AffineTransform& localToParentTransform() const OVERRIDE { return m_localTransform; }
virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = true; }
- virtual bool didTransformToRootUpdate() OVERRIDE { return m_didTransformToRootUpdate; }
+ virtual bool didTransformToRootUpdate() const OVERRIDE { return m_didTransformToRootUpdate; }
Julien - ping for review 2014/07/23 18:47:39 m_didTransformToRoot is reset during layout (Rende
Xianzhu 2014/07/23 18:52:29 I think you are right. Perhaps we should not clear
Xianzhu 2014/07/23 19:05:08 The latest Patch Set avoids resetting the flag dur
+ virtual void clearPaintInvalidationState() OVERRIDE;
private:
virtual bool calculateLocalTransform() OVERRIDE;
virtual AffineTransform localTransform() const OVERRIDE { return m_localTransform; }
+#if ENABLE(ASSERT)
+ virtual bool paintInvalidationStateIsDirty() const OVERRIDE { return RenderSVGContainer::paintInvalidationStateIsDirty() || m_didTransformToRootUpdate; }
+#endif
+
bool m_needsTransformUpdate : 1;
bool m_didTransformToRootUpdate : 1;
AffineTransform m_localTransform;

Powered by Google App Engine
This is Rietveld 408576698