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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2901213008: Make DocumentMarkerController::Add[Spelling/Grammar]Marker() take EphemeralRange (Closed)
Patch Set: Created 3 years, 7 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/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,

Powered by Google App Engine
This is Rietveld 408576698