| 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);
|
| +}
|
|
|