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

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

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 if (idsChanged) 755 if (idsChanged)
756 m_ariaOwnerToIdsMapping.set(owner->axObjectID(), newIds); 756 m_ariaOwnerToIdsMapping.set(owner->axObjectID(), newIds);
757 757
758 // 758 //
759 // Now figure out the ids that actually correspond to children that exist an d 759 // Now figure out the ids that actually correspond to children that exist an d
760 // that we can legally own (not cyclical, not already owned, etc.) and updat e 760 // that we can legally own (not cyclical, not already owned, etc.) and updat e
761 // the maps and |ownedChildren| based on that. 761 // the maps and |ownedChildren| based on that.
762 // 762 //
763 763
764 // Figure out the children that are owned by this object and are in the tree . 764 // Figure out the children that are owned by this object and are in the tree .
765 TreeScope& scope = owner->getNode()->treeScope(); 765 TreeScope& scope = owner->getNode()->treeScopeOrDocument();
766 Vector<AXID> newChildAXIDs; 766 Vector<AXID> newChildAXIDs;
767 for (const String& idName : idVector) { 767 for (const String& idName : idVector) {
768 Element* element = scope.getElementById(AtomicString(idName)); 768 Element* element = scope.getElementById(AtomicString(idName));
769 if (!element) 769 if (!element)
770 continue; 770 continue;
771 771
772 AXObject* child = getOrCreate(element); 772 AXObject* child = getOrCreate(element);
773 if (!child) 773 if (!child)
774 continue; 774 continue;
775 775
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 visitor->trace(m_document); 1270 visitor->trace(m_document);
1271 visitor->trace(m_nodeObjectMapping); 1271 visitor->trace(m_nodeObjectMapping);
1272 1272
1273 visitor->trace(m_objects); 1273 visitor->trace(m_objects);
1274 visitor->trace(m_notificationsToPost); 1274 visitor->trace(m_notificationsToPost);
1275 1275
1276 AXObjectCache::trace(visitor); 1276 AXObjectCache::trace(visitor);
1277 } 1277 }
1278 1278
1279 } // namespace blink 1279 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObject.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698