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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.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/html/HTMLFrameOwnerElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
index cebcc0b20d7aba39bb64b8c0c9697deed0f4a954..9a425115a02a6afa53ff3e15250a1e94ed83b4da 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
@@ -116,7 +116,7 @@ HTMLFrameOwnerElement::UpdateSuspendScope::~UpdateSuspendScope() {
// Unlike moveWidgetToParentSoon, this will not call dispose the Widget.
void temporarilyRemoveWidgetFromParentSoon(Widget* widget) {
if (s_updateSuspendCount) {
- widgetsPendingTemporaryRemovalFromParent().add(widget);
+ widgetsPendingTemporaryRemovalFromParent().insert(widget);
} else {
if (toFrameView(widget->parent()))
toFrameView(widget->parent())->removeChild(widget);
@@ -215,7 +215,7 @@ bool HTMLFrameOwnerElement::isKeyboardFocusable() const {
void HTMLFrameOwnerElement::disposeWidgetSoon(Widget* widget) {
if (s_updateSuspendCount) {
- widgetsPendingDispose().add(widget);
+ widgetsPendingDispose().insert(widget);
return;
}
widget->dispose();

Powered by Google App Engine
This is Rietveld 408576698