| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 74b38a460e8554b99ce89bff02e1e8b2cbff684a..3b40be5dd0fd8e8cef9f02160a48c91f0e6e71d1 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -930,13 +930,10 @@ void Internals::setMarker(Document* document,
|
| }
|
|
|
| document->UpdateStyleAndLayoutIgnorePendingStylesheets();
|
| - if (type == DocumentMarker::kSpelling) {
|
| - document->Markers().AddSpellingMarker(range->StartPosition(),
|
| - range->EndPosition());
|
| - } else {
|
| - document->Markers().AddGrammarMarker(range->StartPosition(),
|
| - range->EndPosition());
|
| - }
|
| + if (type == DocumentMarker::kSpelling)
|
| + document->Markers().AddSpellingMarker(EphemeralRange(range));
|
| + else
|
| + document->Markers().AddGrammarMarker(EphemeralRange(range));
|
| }
|
|
|
| unsigned Internals::markerCountForNode(Node* node,
|
|
|