| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 *relatedObjects = localRelatedObjects; | 851 *relatedObjects = localRelatedObjects; |
| 852 return accumulatedText.toString(); | 852 return accumulatedText.toString(); |
| 853 } | 853 } |
| 854 | 854 |
| 855 void AXObject::tokenVectorFromAttribute(Vector<String>& tokens, const QualifiedN
ame& attribute) const | 855 void AXObject::tokenVectorFromAttribute(Vector<String>& tokens, const QualifiedN
ame& attribute) const |
| 856 { | 856 { |
| 857 Node* node = this->getNode(); | 857 Node* node = this->getNode(); |
| 858 if (!node || !node->isElementNode()) | 858 if (!node || !node->isElementNode()) |
| 859 return; | 859 return; |
| 860 | 860 |
| 861 String attributeValue = getAttribute(attribute).string(); | 861 String attributeValue = getAttribute(attribute).getString(); |
| 862 if (attributeValue.isEmpty()) | 862 if (attributeValue.isEmpty()) |
| 863 return; | 863 return; |
| 864 | 864 |
| 865 attributeValue.simplifyWhiteSpace(); | 865 attributeValue.simplifyWhiteSpace(); |
| 866 attributeValue.split(' ', tokens); | 866 attributeValue.split(' ', tokens); |
| 867 } | 867 } |
| 868 | 868 |
| 869 void AXObject::elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element
>>& elements, const QualifiedName& attribute) const | 869 void AXObject::elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element
>>& elements, const QualifiedName& attribute) const |
| 870 { | 870 { |
| 871 Vector<String> ids; | 871 Vector<String> ids; |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1685 | 1685 |
| 1686 DEFINE_TRACE(AXObject) | 1686 DEFINE_TRACE(AXObject) |
| 1687 { | 1687 { |
| 1688 visitor->trace(m_children); | 1688 visitor->trace(m_children); |
| 1689 visitor->trace(m_parent); | 1689 visitor->trace(m_parent); |
| 1690 visitor->trace(m_cachedLiveRegionRoot); | 1690 visitor->trace(m_cachedLiveRegionRoot); |
| 1691 visitor->trace(m_axObjectCache); | 1691 visitor->trace(m_axObjectCache); |
| 1692 } | 1692 } |
| 1693 | 1693 |
| 1694 } // namespace blink | 1694 } // namespace blink |
| OLD | NEW |