Index: third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h |
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h |
index c6c87b1f0a804113d9acd0893b31a330a2f45dd6..74c69dd4e88fed8f563b7fc6853c5eec320181e3 100644 |
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h |
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h |
@@ -37,11 +37,9 @@ |
enum class State { kInvalid, kValidNull, kValidNotNull }; |
public: |
- TextMatchMarker(unsigned start_offset, |
- unsigned end_offset, |
- MatchStatus status) |
- : DocumentMarker(start_offset, end_offset, status), |
- state_(State::kInvalid) {} |
+ static TextMatchMarker* Create(const DocumentMarker& marker) { |
+ return new TextMatchMarker(marker); |
+ } |
bool IsRendered() const { return state_ == State::kValidNotNull; } |
bool Contains(const LayoutPoint& point) const { |