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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.cpp

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/LayoutSVGHiddenContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.cpp
index 329a8b53c8c7fde7573524709beec57c46605d8e..3961d888d0349e6063e00be58bc349481b706f29 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.cpp
@@ -33,7 +33,9 @@ void LayoutSVGHiddenContainer::layout()
{
ASSERT(needsLayout());
LayoutAnalyzer::Scope analyzer(*this);
- SVGLayoutSupport::layoutChildren(this, selfNeedsLayout());
+ // TODO(fs): In what cases do we need this?
+ bool transformChanged = SVGLayoutSupport::transformToRootChanged(this);
+ SVGLayoutSupport::layoutChildren(this, selfNeedsLayout(), transformChanged);
pdr. 2016/04/19 18:53:44 Can you remove this and see what tests fail, and f
fs 2016/04/19 19:39:56 Yepp, I intend to.
updateCachedBoundaries();
clearNeedsLayout();
}

Powered by Google App Engine
This is Rietveld 408576698