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

Unified Diff: third_party/WebKit/LayoutTests/paint/selection/resources/selection.js

Issue 1817463004: Always apply parent clips to selection rects when painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/paint/selection/resources/selection.js
diff --git a/third_party/WebKit/LayoutTests/paint/selection/resources/selection.js b/third_party/WebKit/LayoutTests/paint/selection/resources/selection.js
index 2a7c2d8b75e900fed3f69fc665e98657b64d015f..bfc2a4475de78d0632ba6b78532e6a9d720e9435 100644
--- a/third_party/WebKit/LayoutTests/paint/selection/resources/selection.js
+++ b/third_party/WebKit/LayoutTests/paint/selection/resources/selection.js
@@ -10,3 +10,9 @@ function selectRange(startElement, startIndex, endElement, endIndex) {
range.setEnd(endElement, endIndex);
window.getSelection().addRange(range);
}
+
+function selectNode(element) {
+ var range = document.createRange();
+ range.selectNode(element);
+ window.getSelection().addRange(range);
+}

Powered by Google App Engine
This is Rietveld 408576698