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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp

Issue 2818873002: [DMC #1.9] Move DocumentMarkerListEditor to its own .h/.cpp files (Closed)
Patch Set: Add DocumentMarker::EndsBefore() Created 3 years, 8 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/DocumentMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
index 1ba43e8263daf09bf306eddf362925d9c1eb101c..1b70bef4c8487b5c5e3cfe11f5f969c9a95431b6 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
@@ -267,6 +267,11 @@ Color DocumentMarker::BackgroundColor() const {
return Color::kTransparent;
}
+bool DocumentMarker::EndsBefore(size_t start_offset,
+ const DocumentMarker* marker) {
+ return start_offset < marker->EndOffset();
+}
+
DEFINE_TRACE(DocumentMarker) {
visitor->Trace(details_);
}

Powered by Google App Engine
This is Rietveld 408576698