| Index: third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp b/third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp
|
| index fd5b0f178698f91f0e8b598923098fdf89821095..eb1baddc37abc08b686d0d2144a94eb88ea32f7d 100644
|
| --- a/third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp
|
| @@ -40,10 +40,11 @@ void SurroundingTextTest::setHTML(const String& content) {
|
|
|
| VisibleSelection SurroundingTextTest::select(int start, int end) {
|
| Element* element = document().getElementById("selection");
|
| - VisibleSelection selection;
|
| - selection.setBase(Position(toText(element->firstChild()), start));
|
| - selection.setExtent(Position(toText(element->firstChild()), end));
|
| - return selection;
|
| + return createVisibleSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position(toText(element->firstChild()), start))
|
| + .extend(Position(toText(element->firstChild()), end))
|
| + .build());
|
| }
|
|
|
| TEST_F(SurroundingTextTest, BasicCaretSelection) {
|
|
|