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

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

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move CompositionMarkerList::at() into this CL Created 3 years, 9 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/TextMatchMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
index edb82e3a629763da8484e60d40a229e451349987..2bc24eaf1458a80888a3e4bbdcc0b591d5e19884 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.cpp
@@ -11,13 +11,22 @@ namespace blink {
TextMatchMarker::TextMatchMarker(unsigned startOffset,
unsigned endOffset,
bool activeMatch)
- : DocumentMarker(startOffset, endOffset, activeMatch),
+ : DocumentMarker(startOffset, endOffset),
+ m_activeMatch(activeMatch),
m_state(State::Invalid) {}
TextMatchMarker* TextMatchMarker::clone() const {
return new TextMatchMarker(*this);
}
+DocumentMarker::MarkerType TextMatchMarker::type() const {
+ return DocumentMarker::TextMatch;
+}
+
+bool TextMatchMarker::activeMatch() const {
+ return m_activeMatch;
+}
+
void TextMatchMarker::updateRenderedRectIfNeeded(const Node& node) {
if (!isValid())
updateRenderedRect(node);

Powered by Google App Engine
This is Rietveld 408576698