| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |