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

Unified Diff: Source/core/dom/DocumentMarkerController.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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 | « Source/core/dom/DocumentMarkerController.h ('k') | Source/core/dom/custom/CustomElementMicrotaskRunQueue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentMarkerController.cpp
diff --git a/Source/core/dom/DocumentMarkerController.cpp b/Source/core/dom/DocumentMarkerController.cpp
index 7f29fa0a7e629077341d5ad93358f940bfde102b..765c68642b2f0bda486de369be4e50919015bf47 100644
--- a/Source/core/dom/DocumentMarkerController.cpp
+++ b/Source/core/dom/DocumentMarkerController.cpp
@@ -705,32 +705,6 @@ void DocumentMarkerController::setMarkersActive(Node* node, unsigned startOffset
node->renderer()->setShouldDoFullPaintInvalidation();
}
-bool DocumentMarkerController::hasMarkers(Range* range, DocumentMarker::MarkerTypes markerTypes)
-{
- if (!possiblyHasMarkers(markerTypes))
- return false;
- ASSERT(!m_markers.isEmpty());
-
- Node* startContainer = range->startContainer();
- ASSERT(startContainer);
- Node* endContainer = range->endContainer();
- ASSERT(endContainer);
-
- Node* pastLastNode = range->pastLastNode();
- for (Node* node = range->firstNode(); node != pastLastNode; node = NodeTraversal::next(*node)) {
- for (const DocumentMarker* marker : markersFor(node)) {
- if (!markerTypes.contains(marker->type()))
- continue;
- if (node == startContainer && marker->endOffset() <= static_cast<unsigned>(range->startOffset()))
- continue;
- if (node == endContainer && marker->startOffset() >= static_cast<unsigned>(range->endOffset()))
- continue;
- return true;
- }
- }
- return false;
-}
-
#ifndef NDEBUG
void DocumentMarkerController::showMarkers() const
{
« no previous file with comments | « Source/core/dom/DocumentMarkerController.h ('k') | Source/core/dom/custom/CustomElementMicrotaskRunQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698