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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html

Issue 2967973002: Select exact nodes in fast/text/selection-*.html (Closed)
Patch Set: Created 3 years, 5 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 | « third_party/WebKit/LayoutTests/fast/text/selection-rect-line-height-too-small.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html b/third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html
index 8731541b7fe9804399c9bf86e82d279d4eaa9d29..ab5fd618adc30d353596a0011884d308914513fa 100644
--- a/third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html
+++ b/third_party/WebKit/LayoutTests/fast/text/selection-rect-rounding.html
@@ -3,5 +3,5 @@
</style>
<div id="target" style="font: 11px 'lucida grande'; color: transparent; width: 100px; overflow: hidden;">i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u </div>
<script>
- getSelection().setBaseAndExtent(target, 0, target, 1);
+ getSelection().setBaseAndExtent(target.firstChild, 0, target.firstChild, target.firstChild.length - 2);
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/text/selection-rect-line-height-too-small.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698