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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.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/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 9f4b1c1d7bcd26faef4a027d2a195ad6b06bc977..06832a7f817cf23db3bcb9c0dbdbfc8b58b4ab91 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.cpp
@@ -21,6 +21,7 @@
#include "core/layout/svg/LayoutSVGResourceMarker.h"
+#include "core/layout/svg/SVGLayoutSupport.h"
#include "wtf/TemporaryChange.h"
namespace blink {
@@ -153,12 +154,12 @@ void LayoutSVGResourceMarker::calcViewport()
m_viewport = FloatRect(0, 0, w, h);
}
-LayoutSVGContainer::TransformChange LayoutSVGResourceMarker::calculateLocalTransform()
+SVGTransformChange 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() ? TransformChange::Full : TransformChange::None;
+ return selfNeedsLayout() ? SVGTransformChange::Full : SVGTransformChange::None;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698