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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.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/svg/LayoutSVGResourceContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 2e525ba4da6790b1a34620f54a937f9447d0c803..525258e73ffd5fd3381924bcb7ff2de62456ce8d 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -186,7 +186,7 @@ void LayoutSVGResourceContainer::markClientForInvalidation(
void LayoutSVGResourceContainer::addClient(LayoutObject* client) {
ASSERT(client);
- m_clients.add(client);
+ m_clients.insert(client);
clearInvalidationMask();
}
@@ -269,7 +269,7 @@ static inline void removeFromCacheAndInvalidateDependencies(
for (SVGElement* element : *dependencies) {
if (LayoutObject* layoutObject = element->layoutObject()) {
- if (UNLIKELY(!invalidatingDependencies.add(element).isNewEntry)) {
+ if (UNLIKELY(!invalidatingDependencies.insert(element).isNewEntry)) {
// Reference cycle: we are in process of invalidating this dependant.
continue;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextAutosizer.cpp ('k') | third_party/WebKit/Source/core/layout/svg/SVGResources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698