| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 2ff584b31a1021b5924821ee81ea81ad003bf0bf..cdc6f2a23b7d8894c1a4cf2a9d0ff1f9b24bc404 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -65,6 +65,7 @@
|
| #include "core/editing/iterators/TextIterator.h"
|
| #include "core/editing/markers/DocumentMarker.h"
|
| #include "core/editing/markers/DocumentMarkerController.h"
|
| +#include "core/editing/markers/TextMatchMarker.h"
|
| #include "core/editing/serializers/Serialization.h"
|
| #include "core/editing/spellcheck/IdleSpellCheckCallback.h"
|
| #include "core/editing/spellcheck/SpellCheckRequester.h"
|
| @@ -964,7 +965,7 @@ unsigned Internals::activeMarkerCountForNode(Node* node) {
|
|
|
| unsigned active_marker_count = 0;
|
| for (const auto& marker : markers) {
|
| - if (marker->IsActiveMatch())
|
| + if (ToTextMatchMarker(marker)->IsActiveMatch())
|
| active_marker_count++;
|
| }
|
|
|
| @@ -1014,12 +1015,12 @@ String Internals::markerDescriptionForNode(Node* node,
|
| return marker->Description();
|
| }
|
|
|
| -static WTF::Optional<DocumentMarker::MatchStatus> MatchStatusFrom(
|
| +static WTF::Optional<TextMatchMarker::MatchStatus> MatchStatusFrom(
|
| const String& match_status) {
|
| if (EqualIgnoringASCIICase(match_status, "kActive"))
|
| - return DocumentMarker::MatchStatus::kActive;
|
| + return TextMatchMarker::MatchStatus::kActive;
|
| if (EqualIgnoringASCIICase(match_status, "kInactive"))
|
| - return DocumentMarker::MatchStatus::kInactive;
|
| + return TextMatchMarker::MatchStatus::kInactive;
|
| return WTF::nullopt;
|
| }
|
|
|
| @@ -1030,7 +1031,7 @@ void Internals::addTextMatchMarker(const Range* range,
|
| if (!range->OwnerDocument().View())
|
| return;
|
|
|
| - WTF::Optional<DocumentMarker::MatchStatus> match_status_enum =
|
| + WTF::Optional<TextMatchMarker::MatchStatus> match_status_enum =
|
| MatchStatusFrom(match_status);
|
| if (!match_status_enum) {
|
| exception_state.ThrowDOMException(
|
|
|