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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 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
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 64a00a793e01297438fcb532af8bffb90d17ac44..41afe11c85185d22f509ddc551141887d1ae33c5 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -236,7 +236,7 @@ void DocumentMarkerController::addMarker(Node* node,
m_possiblyExistingMarkerTypes.add(newMarker.type());
Member<MarkerLists>& markers =
- m_markers.add(node, nullptr).storedValue->value;
+ m_markers.insert(node, nullptr).storedValue->value;
if (!markers) {
markers = new MarkerLists;
markers->grow(DocumentMarker::MarkerTypeIndexesCount);
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp ('k') | third_party/WebKit/Source/core/events/EventPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698