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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/LayoutSVGResourceClipper.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
index 2072bcaa97c3b9a2236fdb90464dcae03b0ab829..9ed7c72d32a89996c6a5310e3624e0244119abb8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
@@ -270,7 +270,8 @@ bool LayoutSVGResourceClipper::hitTestClipContent(
}
AffineTransform animatedLocalTransform =
- toSVGClipPathElement(element())->calculateAnimatedLocalTransform();
+ toSVGClipPathElement(element())->calculateTransform(
+ SVGElement::IncludeMotionTransform);
if (!animatedLocalTransform.isInvertible())
return false;
@@ -304,7 +305,8 @@ FloatRect LayoutSVGResourceClipper::resourceBoundingBox(
calculateLocalClipBounds();
AffineTransform transform =
- toSVGClipPathElement(element())->calculateAnimatedLocalTransform();
+ toSVGClipPathElement(element())->calculateTransform(
+ SVGElement::IncludeMotionTransform);
if (clipPathUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox) {
transform.translate(referenceBox.x(), referenceBox.y());
transform.scaleNonUniform(referenceBox.width(), referenceBox.height());

Powered by Google App Engine
This is Rietveld 408576698