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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: Created 3 years, 11 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index ec371a82dda91a49f58758a507a62571efa5b3a1..e89523119f46d90b71d7831b37796dedd9055554 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -710,7 +710,7 @@ void LayoutView::setSelection(
LayoutBlock* cb = os->containingBlock();
while (cb && !cb->isLayoutView()) {
SelectedBlockMap::AddResult result =
- oldSelectedBlocks.add(cb, cb->getSelectionState());
+ oldSelectedBlocks.insert(cb, cb->getSelectionState());
if (!result.isNewEntry)
break;
cb = cb->containingBlock();
@@ -766,7 +766,7 @@ void LayoutView::setSelection(
LayoutBlock* cb = o->containingBlock();
while (cb && !cb->isLayoutView()) {
SelectedBlockMap::AddResult result =
- newSelectedBlocks.add(cb, cb->getSelectionState());
+ newSelectedBlocks.insert(cb, cb->getSelectionState());
if (!result.isNewEntry)
break;
cb = cb->containingBlock();

Powered by Google App Engine
This is Rietveld 408576698