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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 HashSet<String> currentIds = m_ariaOwnerToIdsMapping.get(owner->axObjectID()); 712 HashSet<String> currentIds = m_ariaOwnerToIdsMapping.get(owner->axObjectID());
713 HashSet<String> newIds; 713 HashSet<String> newIds;
714 bool idsChanged = false; 714 bool idsChanged = false;
715 for (const String& id : idVector) { 715 for (const String& id : idVector) {
716 newIds.add(id); 716 newIds.add(id);
717 if (!currentIds.contains(id)) { 717 if (!currentIds.contains(id)) {
718 idsChanged = true; 718 idsChanged = true;
719 HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id); 719 HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id);
720 if (!owners) { 720 if (!owners) {
721 owners = new HashSet<AXID>(); 721 owners = new HashSet<AXID>();
722 m_idToAriaOwnersMapping.set(id, wrapUnique(owners)); 722 m_idToAriaOwnersMapping.set(id, WTF::wrapUnique(owners));
723 } 723 }
724 owners->add(owner->axObjectID()); 724 owners->add(owner->axObjectID());
725 } 725 }
726 } 726 }
727 for (const String& id : currentIds) { 727 for (const String& id : currentIds) {
728 if (!newIds.contains(id)) { 728 if (!newIds.contains(id)) {
729 idsChanged = true; 729 idsChanged = true;
730 HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id); 730 HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id);
731 if (owners) { 731 if (owners) {
732 owners->remove(owner->axObjectID()); 732 owners->remove(owner->axObjectID());
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 visitor->trace(m_document); 1253 visitor->trace(m_document);
1254 visitor->trace(m_nodeObjectMapping); 1254 visitor->trace(m_nodeObjectMapping);
1255 1255
1256 visitor->trace(m_objects); 1256 visitor->trace(m_objects);
1257 visitor->trace(m_notificationsToPost); 1257 visitor->trace(m_notificationsToPost);
1258 1258
1259 AXObjectCache::trace(visitor); 1259 AXObjectCache::trace(visitor);
1260 } 1260 }
1261 1261
1262 } // namespace blink 1262 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698