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

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

Issue 2086583004: Common up SVG transform "change detection" (classification) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
index 899b8c3f6cf7e7d3c063718fb6e8724e246e153c..1e62ca9fcd732c047ec41330e5413b32b2ead2ca 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
@@ -55,9 +55,9 @@ void LayoutSVGContainer::layout()
calcViewport();
// Allow LayoutSVGTransformableContainer to update its transform.
- TransformChange transformChange = calculateLocalTransform();
+ SVGTransformChange transformChange = calculateLocalTransform();
m_didScreenScaleFactorChange =
- transformChange == TransformChange::Full || SVGLayoutSupport::screenScaleFactorChanged(parent());
+ transformChange == SVGTransformChange::Full || SVGLayoutSupport::screenScaleFactorChanged(parent());
// LayoutSVGViewportContainer needs to set the 'layout size changed' flag.
determineIfLayoutSizeChanged();
@@ -73,7 +73,7 @@ void LayoutSVGContainer::layout()
if (everHadLayout() && needsLayout())
SVGResourcesCache::clientLayoutChanged(this);
- if (m_needsBoundariesUpdate || transformChange != TransformChange::None) {
+ if (m_needsBoundariesUpdate || transformChange != SVGTransformChange::None) {
updateCachedBoundaries();
m_needsBoundariesUpdate = false;
@@ -201,4 +201,9 @@ bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin
return false;
}
+SVGTransformChange LayoutSVGContainer::calculateLocalTransform()
+{
+ return SVGTransformChange::None;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698