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"); |