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

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

Issue 1920833002: Don't force layout of descendants of SVG containers needing self-layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify comments. Make some methods private. 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/LayoutSVGResourceMarker.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
index 5ffed88d1cd3ecdcfb804db9997f4aec3358b969..8b0b954177898bf1ef932c46f13e707498c86e1f 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
@@ -152,4 +152,12 @@ void LayoutSVGResourceMarker::calcViewport()
m_viewport = FloatRect(0, 0, w, h);
}
+bool LayoutSVGResourceMarker::calculateLocalTransform()
+{
+ // TODO(fs): Temporarily, needing a layout implies that the local transform
+ // has changed. This should be updated to be more precise and factor in the
+ // actual (relevant) changes to the computed user-space transform.
+ return selfNeedsLayout();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698