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

Unified Diff: Source/core/testing/Internals.cpp

Issue 181693003: Have Document::markers() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/rendering/InlineTextBox.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 738eddf2426929fc95e6de86375d3c7f6d292265..8795972d3d4ba21c7713884f7a053abc43f288b6 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -821,7 +821,7 @@ unsigned Internals::markerCountForNode(Node* node, const String& markerType, Exc
return 0;
}
- return node->document().markers()->markersFor(node, markerTypes).size();
+ return node->document().markers().markersFor(node, markerTypes).size();
}
unsigned Internals::activeMarkerCountForNode(Node* node, ExceptionState& exceptionState)
@@ -833,7 +833,7 @@ unsigned Internals::activeMarkerCountForNode(Node* node, ExceptionState& excepti
// Only TextMatch markers can be active.
DocumentMarker::MarkerType markerType = DocumentMarker::TextMatch;
- Vector<DocumentMarker*> markers = node->document().markers()->markersFor(node, markerType);
+ Vector<DocumentMarker*> markers = node->document().markers().markersFor(node, markerType);
unsigned activeMarkerCount = 0;
for (Vector<DocumentMarker*>::iterator iter = markers.begin(); iter != markers.end(); ++iter) {
@@ -857,7 +857,7 @@ DocumentMarker* Internals::markerAt(Node* node, const String& markerType, unsign
return 0;
}
- Vector<DocumentMarker*> markers = node->document().markers()->markersFor(node, markerTypes);
+ Vector<DocumentMarker*> markers = node->document().markers().markersFor(node, markerTypes);
if (markers.size() <= index)
return 0;
return markers[index];
@@ -882,7 +882,7 @@ String Internals::markerDescriptionForNode(Node* node, const String& markerType,
void Internals::addTextMatchMarker(const Range* range, bool isActive)
{
range->ownerDocument().updateLayoutIgnorePendingStylesheets();
- range->ownerDocument().markers()->addTextMatchMarker(range, isActive);
+ range->ownerDocument().markers().addTextMatchMarker(range, isActive);
}
void Internals::setMarkersActive(Node* node, unsigned startOffset, unsigned endOffset, bool active, ExceptionState& exceptionState)
@@ -892,7 +892,7 @@ void Internals::setMarkersActive(Node* node, unsigned startOffset, unsigned endO
return;
}
- node->document().markers()->setMarkersActive(node, startOffset, endOffset, active);
+ node->document().markers().setMarkersActive(node, startOffset, endOffset, active);
}
void Internals::setMarkedTextMatchesAreHighlighted(Document* document, bool highlight, ExceptionState&)
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698