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

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

Issue 289323003: Move markerlists to Oilpan heap and remove finalizer from DocumentMarkerController (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index ad01f3807c8729819291c85a6d27a28c9316c741..3a2ef0e701c5ad91251f0a9b2ac8246cc410789f 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -806,10 +806,10 @@ 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);
+ WillBeHeapVector<DocumentMarker*> markers = node->document().markers().markersFor(node, markerType);
unsigned activeMarkerCount = 0;
- for (Vector<DocumentMarker*>::iterator iter = markers.begin(); iter != markers.end(); ++iter) {
+ for (WillBeHeapVector<DocumentMarker*>::iterator iter = markers.begin(); iter != markers.end(); ++iter) {
if ((*iter)->activeMatch())
activeMarkerCount++;
}
@@ -830,7 +830,7 @@ DocumentMarker* Internals::markerAt(Node* node, const String& markerType, unsign
return 0;
}
- Vector<DocumentMarker*> markers = node->document().markers().markersFor(node, markerTypes);
+ WillBeHeapVector<DocumentMarker*> markers = node->document().markers().markersFor(node, markerTypes);
if (markers.size() <= index)
return 0;
return markers[index];

Powered by Google App Engine
This is Rietveld 408576698