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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h

Issue 1996543002: Avoid using forced layout to trigger paint invalidation for SVG containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
index b3e1fee76f54b0702a8245d1e07258392ff4c978..59165baf84ee12b2484b8b07835036cf1147874e 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
@@ -70,8 +70,13 @@ protected:
bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
+ enum TransformChangeFlags {
pdr. 2016/06/15 12:15:17 Returning just ScaleChange from LayoutSVGResourceM
fs 2016/06/15 22:10:33 Yes, not too happy about this bit (no pun intended
fs 2016/06/20 11:48:49 Rewrote it to use an (ordered) enumeration instead
+ NoTransformChange = 0,
+ TransformChange = 1u << 0,
+ ScaleChange = 1u << 1,
+ };
// Allow LayoutSVGTransformableContainer to hook in at the right time in layout().
- virtual bool calculateLocalTransform() { return false; }
+ virtual unsigned calculateLocalTransform() { return NoTransformChange; }
// Allow LayoutSVGViewportContainer to hook in at the right times in layout() and nodeAtFloatPoint().
virtual void calcViewport() { }

Powered by Google App Engine
This is Rietveld 408576698