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

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

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index 2d3120b6a6d5278949e0aed5ffebd6ef522d4b34..0dbfa0fcf6ddce106a4d1a3d2b5c07f5b89e327d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -316,7 +316,7 @@ bool LayoutFlexibleBox::hasLeftOverflow() const {
void LayoutFlexibleBox::removeChild(LayoutObject* child) {
LayoutBlock::removeChild(child);
- m_intrinsicSizeAlongMainAxis.remove(child);
+ m_intrinsicSizeAlongMainAxis.erase(child);
}
// TODO (lajava): Is this function still needed ? Every time the flex
@@ -888,7 +888,7 @@ void LayoutFlexibleBox::cacheChildMainSize(const LayoutBox& child) {
}
void LayoutFlexibleBox::clearCachedMainSizeForChild(const LayoutBox& child) {
- m_intrinsicSizeAlongMainAxis.remove(&child);
+ m_intrinsicSizeAlongMainAxis.erase(&child);
}
DISABLE_CFI_PERF
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutCounter.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698