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

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: TE updates 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..8af1ed32e423771b37ec75cbb1a7ad4479f86f9b 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h
@@ -70,8 +70,17 @@ protected:
bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
+ // The following enumeration is used to optimize cases where the scale is
+ // known to be invariant (see: LayoutSVGContainer::layout). The value
+ // 'Full' can be used in the general case when the scale change is unknown,
+ // or known to change.
+ enum class TransformChange {
+ None,
+ ScaleInvariant,
+ Full,
+ };
// Allow LayoutSVGTransformableContainer to hook in at the right time in layout().
- virtual bool calculateLocalTransform() { return false; }
+ virtual TransformChange calculateLocalTransform() { return TransformChange::None; }
// Allow LayoutSVGViewportContainer to hook in at the right times in layout() and nodeAtFloatPoint().
virtual void calcViewport() { }
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698