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

Unified Diff: third_party/WebKit/Source/core/layout/FloatingObjects.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/FloatingObjects.cpp
diff --git a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
index f4437142911e1c22e18794c4470b42812eaf8bb2..71a5330cf764fbe5f601ef90b1db3c46c4e377e0 100644
--- a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
+++ b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
@@ -468,7 +468,7 @@ void FloatingObjects::moveAllToFloatInfoMap(LayoutBoxToFloatInfoMap& map) {
while (!m_set.isEmpty()) {
std::unique_ptr<FloatingObject> floatingObject = m_set.takeFirst();
LayoutBox* layoutObject = floatingObject->layoutObject();
- map.add(layoutObject, std::move(floatingObject));
+ map.insert(layoutObject, std::move(floatingObject));
}
clear();
}

Powered by Google App Engine
This is Rietveld 408576698