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

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

Issue 2896483002: [DMC #6.9] Simplify DMC::InvalidateRectsForAllMarkers() (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e6e67c732f3df129031ba0821c0804b295cb8734..8aaf49fe53aa7f49900a43d39865570044a37323 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -462,18 +462,7 @@ void DocumentMarkerController::InvalidateRectsForMarkersInNode(
void DocumentMarkerController::InvalidateRectsForAllMarkers() {
for (auto& node_markers : markers_) {
const Node& node = *node_markers.key;
- for (auto& marker_list : *node_markers.value) {
- if (!marker_list || marker_list->IsEmpty())
- continue;
-
- const HeapVector<Member<RenderedDocumentMarker>>& markers_in_list =
- marker_list->GetMarkers();
- for (DocumentMarker* marker : markers_in_list)
- ToRenderedDocumentMarker(marker)->Invalidate();
-
- if (markers_in_list.front()->GetType() == DocumentMarker::kTextMatch)
- InvalidatePaintForTickmarks(node);
- }
+ InvalidateRectsForMarkersInNode(node);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698