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

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

Issue 1897263002: Hoist transformToRootChanged() out of SVGLayoutSupport::layoutChildren (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@svg-container-layout-cleanup-1
Patch Set: Created 4 years, 8 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/SVGLayoutSupport.h
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h
index 03b3b743cca0b046b4e4bb9a4c274fa9157b4c0a..4dfbf1582f52942e94cfd25252bf0ce1ee4f717d 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h
@@ -50,7 +50,7 @@ class CORE_EXPORT SVGLayoutSupport {
STATIC_ONLY(SVGLayoutSupport);
public:
// Shares child layouting code between LayoutSVGRoot/LayoutSVG(Hidden)Container
- static void layoutChildren(LayoutObject*, bool selfNeedsLayout);
+ static void layoutChildren(LayoutObject*, bool forceLayout, bool transformChanged);
// Layout resources used by this node.
static void layoutResourcesIfNeeded(const LayoutObject*);
@@ -89,7 +89,7 @@ public:
static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyle&, const SVGLengthContext&);
// Determines if any ancestor's transform has changed.
- static bool transformToRootChanged(LayoutObject*);
+ static bool transformToRootChanged(const LayoutObject*);
// FIXME: These methods do not belong here.
static const LayoutSVGRoot* findTreeRootObject(const LayoutObject*);

Powered by Google App Engine
This is Rietveld 408576698