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

Unified Diff: third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h

Issue 2894393002: [DMC #10] Add type cast for TextMatchMarkerListImpl (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImplTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h
index eb7e7e9ccfecf707479fd8f83cc0b9802d2fbd08..ca4ae45f27b214b1bd72e2f1adf01ea3ae27bd8a 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h
@@ -39,6 +39,12 @@ class CORE_EXPORT TextMatchMarkerListImpl final : public DocumentMarkerList {
DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerListImpl);
};
+DEFINE_TYPE_CASTS(TextMatchMarkerListImpl,
+ DocumentMarkerList,
+ list,
+ list->MarkerType() == DocumentMarker::kTextMatch,
+ list.MarkerType() == DocumentMarker::kTextMatch);
+
} // namespace blink
#endif // TextMatchMarkerListImpl_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698