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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (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 e859346c655bc793bf52353ddae4f599a063557c..7d04c866abaaed432f8075701341bc6d0cb3cb2c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -884,7 +884,7 @@ void LayoutFlexibleBox::cacheChildMainSize(const LayoutBox& child) {
child.scrollbarLogicalWidth() - child.scrollbarLogicalWidth();
}
m_intrinsicSizeAlongMainAxis.set(&child, mainSize);
- m_relaidOutChildren.add(&child);
+ m_relaidOutChildren.insert(&child);
}
void LayoutFlexibleBox::clearCachedMainSizeForChild(const LayoutBox& child) {
@@ -1827,7 +1827,7 @@ void LayoutFlexibleBox::layoutAndPlaceChildren(
if (!child->needsLayout())
markChildForPaginationRelayoutIfNeeded(*child, layoutScope);
if (child->needsLayout())
- m_relaidOutChildren.add(child);
+ m_relaidOutChildren.insert(child);
child->layoutIfNeeded();
updateAutoMarginsInMainAxis(*child, autoMarginOffset);

Powered by Google App Engine
This is Rietveld 408576698