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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.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/frame/FrameSerializer.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
index 7225b31f39e2dbf55f8a2b4a68d0095ac5e2964c..0ec86460c13e19eb22868c551c5f40c6a48eb447 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
@@ -250,7 +250,7 @@ void SerializerMarkupAccumulator::appendRewrittenAttribute(
const String& attributeValue) {
if (m_elementsWithRewrittenLinks.contains(&element))
return;
- m_elementsWithRewrittenLinks.add(&element);
+ m_elementsWithRewrittenLinks.insert(&element);
// Append the rewritten attribute.
// TODO(tiger): Refactor MarkupAccumulator so it is easier to append an
@@ -395,7 +395,7 @@ void FrameSerializer::serializeCSSStyleSheet(CSSStyleSheet& styleSheet,
m_resources->append(
SerializedResource(url, String("text/css"),
SharedBuffer::create(text.data(), text.length())));
- m_resourceURLs.add(url);
+ m_resourceURLs.insert(url);
}
// Sub resources need to be serialized even if the CSS definition doesn't
@@ -478,7 +478,7 @@ void FrameSerializer::addToResources(
}
m_resources->append(SerializedResource(url, mimeType, std::move(data)));
- m_resourceURLs.add(url);
+ m_resourceURLs.insert(url);
}
void FrameSerializer::addImageToResources(ImageResourceContent* image,
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698