| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 if (ignoredStatus != accessibilityIsIgnored()) | 2181 if (ignoredStatus != accessibilityIsIgnored()) |
| 2182 childrenChanged(); | 2182 childrenChanged(); |
| 2183 } | 2183 } |
| 2184 | 2184 |
| 2185 void AXNodeObject::computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedCh
ildren) const | 2185 void AXNodeObject::computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedCh
ildren) const |
| 2186 { | 2186 { |
| 2187 if (!hasAttribute(aria_ownsAttr)) | 2187 if (!hasAttribute(aria_ownsAttr)) |
| 2188 return; | 2188 return; |
| 2189 | 2189 |
| 2190 Vector<String> idVector; | 2190 Vector<String> idVector; |
| 2191 if (canHaveChildren()) | 2191 if (canHaveChildren() && !isNativeTextControl() && !hasContentEditableAttrib
uteSet()) |
| 2192 tokenVectorFromAttribute(idVector, aria_ownsAttr); | 2192 tokenVectorFromAttribute(idVector, aria_ownsAttr); |
| 2193 | 2193 |
| 2194 axObjectCache().updateAriaOwns(this, idVector, ownedChildren); | 2194 axObjectCache().updateAriaOwns(this, idVector, ownedChildren); |
| 2195 } | 2195 } |
| 2196 | 2196 |
| 2197 // Based on http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#accessible-
name-and-description-calculation | 2197 // Based on http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#accessible-
name-and-description-calculation |
| 2198 String AXNodeObject::nativeTextAlternative(AXObjectSet& visited, AXNameFrom& nam
eFrom, AXRelatedObjectVector* relatedObjects, NameSources* nameSources, bool* fo
undTextAlternative) const | 2198 String AXNodeObject::nativeTextAlternative(AXObjectSet& visited, AXNameFrom& nam
eFrom, AXRelatedObjectVector* relatedObjects, NameSources* nameSources, bool* fo
undTextAlternative) const |
| 2199 { | 2199 { |
| 2200 if (!getNode()) | 2200 if (!getNode()) |
| 2201 return String(); | 2201 return String(); |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2833 return placeholder; | 2833 return placeholder; |
| 2834 } | 2834 } |
| 2835 | 2835 |
| 2836 DEFINE_TRACE(AXNodeObject) | 2836 DEFINE_TRACE(AXNodeObject) |
| 2837 { | 2837 { |
| 2838 visitor->trace(m_node); | 2838 visitor->trace(m_node); |
| 2839 AXObject::trace(visitor); | 2839 AXObject::trace(visitor); |
| 2840 } | 2840 } |
| 2841 | 2841 |
| 2842 } // namespace blink | 2842 } // namespace blink |
| OLD | NEW |