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

Unified Diff: third_party/WebKit/LayoutTests/svg/text/selection-tripleclick.svg

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/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;

Powered by Google App Engine
This is Rietveld 408576698