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); |