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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index e5c58636375c34cd215f9687212fd01482768c24..97b8fa5a79adac5aef54633c5b53d5df226b11b3 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();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698