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

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

Issue 2909553002: [DMC #20] Remove DocumentMarker::IsActiveMatch() and SetIsActiveMatch() methods (Closed)
Patch Set: Update comment 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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
index 7a9fdd4801bd4c311eb6afa002c59d3aa4f49039..e764d6bf52478c01152b9be8afeb01c2a63b13c3 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
@@ -30,7 +30,6 @@
#include "core/editing/markers/DocumentMarker.h"
-#include "core/editing/markers/TextMatchMarker.h"
#include "platform/wtf/StdLibExtras.h"
namespace blink {
@@ -189,11 +188,6 @@ void DocumentMarker::ShiftOffsets(int delta) {
start_offset_ += delta;
end_offset_ += delta;
}
-void DocumentMarker::SetIsActiveMatch(bool active) {
- if (GetType() != DocumentMarker::kTextMatch)
- return;
- ToTextMatchMarker(this)->SetIsActiveMatch(active);
-}
const String& DocumentMarker::Description() const {
if (DocumentMarkerDescription* details =
@@ -202,12 +196,6 @@ const String& DocumentMarker::Description() const {
return g_empty_string;
}
-bool DocumentMarker::IsActiveMatch() const {
- if (GetType() != DocumentMarker::kTextMatch)
- return false;
- return ToTextMatchMarker(this)->IsActiveMatch();
-}
-
Color DocumentMarker::UnderlineColor() const {
if (TextCompositionMarkerDetails* details =
ToTextCompositionMarkerDetails(details_.Get()))

Powered by Google App Engine
This is Rietveld 408576698