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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js

Issue 1406303007: Drop SVGGraphicsElement.getTransformToElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 2 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/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
diff --git a/third_party/WebKit/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js b/third_party/WebKit/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
index bdc259703767efecea076e5759204c9c85100be0..590f51eb15b18d37fbf60baea1f1348c88e1eaa0 100644
--- a/third_party/WebKit/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
+++ b/third_party/WebKit/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
@@ -43,6 +43,10 @@ function expectTranslationMatrix(actualMatrix, expectedE, expectedF, tolerance)
shouldBeCloseEnough(actualMatrix + ".f", expectedF, tolerance);
}
+function getTransformToElement(rootElement, element) {
+ return element.getCTM().inverse().multiply(rootElement.getCTM());
+}
+
function expectColor(element, red, green, blue, property) {
if (typeof property != "string")
color = getComputedStyle(element).getPropertyValue("color");

Powered by Google App Engine
This is Rietveld 408576698