Index: LayoutTests/svg/text/resources/SelectionTestCase.js |
diff --git a/LayoutTests/svg/text/resources/SelectionTestCase.js b/LayoutTests/svg/text/resources/SelectionTestCase.js |
index 1ed49de239f350a9ab79b8f1715d38023d1aa493..fe43dcf63bb3174b7a11ccb55a4341d929e13163 100644 |
--- a/LayoutTests/svg/text/resources/SelectionTestCase.js |
+++ b/LayoutTests/svg/text/resources/SelectionTestCase.js |
@@ -29,7 +29,9 @@ function transformRect(rect, matrix) { |
} |
function toAbsoluteCoordinates(point, element) { |
- return transformPoint(point, document.rootElement.getTransformToElement(element)); |
+ // getScreenCTM() returns the transformation matrix from current user units (i.e., after application of the ‘transform’ property) |
+ // to the parent user agent's notice of a "pixel". |
+ return transformPoint(point, element.getScreenCTM()); |
} |
// Select a range of characters in text element 'id', from the start position of the 'start' character to the end position of the 'end' character |