Index: third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg |
diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg b/third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg |
index 401092ea7bdeb2e2d531c4d5c8fce174eac19a84..965de1858c2a9f5c4eead7f2ab322974fd4f186c 100644 |
--- a/third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg |
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg |
@@ -4,7 +4,7 @@ |
<script> |
var line1 = document.getElementById("line1"); |
var center = document.rootElement.createSVGPoint(); |
-var matrix = document.rootElement.getTransformToElement(line1); |
+var matrix = line1.getCTM().inverse().multiply(document.rootElement.getCTM()) |
var bbox = line1.getBBox(); |
center.x = bbox.x + bbox.width/2; |