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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h

Issue 2916463002: Refactor DocumentMarkerController::Add*Marker() methods (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/editing/markers/DocumentMarkerController.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
index 746aeb784f08576412d7ca3ef9c0c80cb269d00d..347fc664a1922a6f57ba03c721dfe469180dd170 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -111,7 +111,10 @@ class CORE_EXPORT DocumentMarkerController final
unsigned new_length) final;
private:
- void AddMarker(Node*, DocumentMarker*);
+ void AddMarkerInternal(
+ const EphemeralRange&,
+ std::function<DocumentMarker*(int, int)> create_marker_from_offsets);
+ void AddMarkerToNode(Node*, DocumentMarker*);
void AddSpellCheckMarker(const Position& start,
const Position& end,
DocumentMarker::MarkerType,

Powered by Google App Engine
This is Rietveld 408576698