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

Unified Diff: LayoutTests/svg/text/resources/SelectionTestCase.js

Issue 18503004: Have SVGTextContentElement inherit SVGGraphicsElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Really remove SVGLocatable IDL interface Created 7 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/svg/text/selection-doubleclick.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | LayoutTests/svg/text/selection-doubleclick.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698