OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 | 1229 |
1230 return AXNodeObject::textAlternative(recursive, inAriaLabelledByTraversal, | 1230 return AXNodeObject::textAlternative(recursive, inAriaLabelledByTraversal, |
1231 visited, nameFrom, relatedObjects, | 1231 visited, nameFrom, relatedObjects, |
1232 nameSources); | 1232 nameSources); |
1233 } | 1233 } |
1234 | 1234 |
1235 // | 1235 // |
1236 // ARIA attributes. | 1236 // ARIA attributes. |
1237 // | 1237 // |
1238 | 1238 |
1239 void AXLayoutObject::ariaFlowToElements(AXObjectVector& flowTo) const { | |
1240 accessibilityChildrenFromAttribute(aria_flowtoAttr, flowTo); | |
1241 } | |
1242 | |
1243 void AXLayoutObject::ariaControlsElements(AXObjectVector& controls) const { | |
1244 accessibilityChildrenFromAttribute(aria_controlsAttr, controls); | |
1245 } | |
1246 | |
1247 void AXLayoutObject::ariaOwnsElements(AXObjectVector& owns) const { | 1239 void AXLayoutObject::ariaOwnsElements(AXObjectVector& owns) const { |
1248 accessibilityChildrenFromAttribute(aria_ownsAttr, owns); | 1240 accessibilityChildrenFromAttribute(aria_ownsAttr, owns); |
1249 } | 1241 } |
1250 | 1242 |
1251 void AXLayoutObject::ariaDescribedbyElements( | 1243 void AXLayoutObject::ariaDescribedbyElements( |
1252 AXObjectVector& describedby) const { | 1244 AXObjectVector& describedby) const { |
1253 accessibilityChildrenFromAttribute(aria_describedbyAttr, describedby); | 1245 accessibilityChildrenFromAttribute(aria_describedbyAttr, describedby); |
1254 } | 1246 } |
1255 | 1247 |
1256 void AXLayoutObject::ariaLabelledbyElements(AXObjectVector& labelledby) const { | 1248 void AXLayoutObject::ariaLabelledbyElements(AXObjectVector& labelledby) const { |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2487 | 2479 |
2488 bool AXLayoutObject::elementAttributeValue( | 2480 bool AXLayoutObject::elementAttributeValue( |
2489 const QualifiedName& attributeName) const { | 2481 const QualifiedName& attributeName) const { |
2490 if (!m_layoutObject) | 2482 if (!m_layoutObject) |
2491 return false; | 2483 return false; |
2492 | 2484 |
2493 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2485 return equalIgnoringCase(getAttribute(attributeName), "true"); |
2494 } | 2486 } |
2495 | 2487 |
2496 } // namespace blink | 2488 } // namespace blink |
OLD | NEW |