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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2688893002: Migrate WTF::HashSet::add() to ::insert() [continued] (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 10 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/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 31d6df8e3c53ef94a5a384d66c2f36898664f21c..ec57e47f6437e4729c7b80c4b25ea8a2652a66a9 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -427,16 +427,16 @@ const AXObject* AXNodeObject::inheritsPresentationalRoleFrom() const {
static HashSet<QualifiedName>& getLandmarkRolesNotAllowed() {
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, landmarkRolesNotAllowed, ());
if (landmarkRolesNotAllowed.isEmpty()) {
- landmarkRolesNotAllowed.add(articleTag);
- landmarkRolesNotAllowed.add(asideTag);
- landmarkRolesNotAllowed.add(navTag);
- landmarkRolesNotAllowed.add(sectionTag);
- landmarkRolesNotAllowed.add(blockquoteTag);
- landmarkRolesNotAllowed.add(detailsTag);
- landmarkRolesNotAllowed.add(fieldsetTag);
- landmarkRolesNotAllowed.add(figureTag);
- landmarkRolesNotAllowed.add(tdTag);
- landmarkRolesNotAllowed.add(mainTag);
+ landmarkRolesNotAllowed.insert(articleTag);
+ landmarkRolesNotAllowed.insert(asideTag);
+ landmarkRolesNotAllowed.insert(navTag);
+ landmarkRolesNotAllowed.insert(sectionTag);
+ landmarkRolesNotAllowed.insert(blockquoteTag);
+ landmarkRolesNotAllowed.insert(detailsTag);
+ landmarkRolesNotAllowed.insert(fieldsetTag);
+ landmarkRolesNotAllowed.insert(figureTag);
+ landmarkRolesNotAllowed.insert(tdTag);
+ landmarkRolesNotAllowed.insert(mainTag);
}
return landmarkRolesNotAllowed;
}

Powered by Google App Engine
This is Rietveld 408576698