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

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

Issue 2886893008: [DMC #8] Rename DocumentMarkerController::RenderedRectsForMarkers() (Closed)
Patch Set: Reformat FrameView 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/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index f85079ebb19c2a867f477f0863f25e4cde672c2d..eae797a258bcb2065270d992141032f99b60446d 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -393,15 +393,9 @@ DocumentMarkerVector DocumentMarkerController::Markers() {
return result;
}
-Vector<IntRect> DocumentMarkerController::RenderedRectsForMarkers(
- DocumentMarker::MarkerType marker_type) {
- // Only TextMatch markers can have rendered rects
- // TODO(rlanday): remove marker_type parameter
- DCHECK_EQ(marker_type, DocumentMarker::kTextMatch);
-
+Vector<IntRect> DocumentMarkerController::RenderedRectsForTextMatchMarkers() {
Vector<IntRect> result;
-
- if (!PossiblyHasMarkers(marker_type))
+ if (!PossiblyHasMarkers(DocumentMarker::kTextMatch))
return result;
DCHECK(!(markers_.IsEmpty()));

Powered by Google App Engine
This is Rietveld 408576698