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

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

Issue 2298593002: Delete unused DocumentMarkerController::markerContainingPoint() method. (Closed)
Patch Set: Created 4 years, 4 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 | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h ('k') | 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 a3cc9fec0814db7af6ffbd6ed3ef6ad5b9f4575e..5d6cc72803922a314a21a7df4022ffdff7106cf6 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -385,27 +385,6 @@ void DocumentMarkerController::removeMarkers(Node* node, unsigned startOffset, i
node->layoutObject()->setShouldDoFullPaintInvalidation();
}
-DocumentMarker* DocumentMarkerController::markerContainingPoint(const LayoutPoint& point, DocumentMarker::MarkerType markerType)
-{
- if (!possiblyHasMarkers(markerType))
- return 0;
- DCHECK(!(m_markers.isEmpty()));
-
- // outer loop: process each node that contains any markers
- for (auto& nodeMarkers : m_markers) {
- const Node& node = *nodeMarkers.key;
- // inner loop; process each marker in this node
- Member<MarkerList>& markerList = (*nodeMarkers.value)[MarkerTypeToMarkerIndex(markerType)];
- for (auto& marker : *markerList) {
- updateMarkerRenderedRectIfNeeded(node, *marker);
- if (marker->contains(point))
- return marker;
- }
- }
-
- return 0;
-}
-
DocumentMarkerVector DocumentMarkerController::markersFor(Node* node, DocumentMarker::MarkerTypes markerTypes)
{
DocumentMarkerVector result;
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698