| 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 14 matching lines...) Expand all Loading... |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "modules/accessibility/AXNodeObject.h" | 29 #include "modules/accessibility/AXNodeObject.h" |
| 30 | 30 |
| 31 #include "core/InputTypeNames.h" | 31 #include "core/InputTypeNames.h" |
| 32 #include "core/dom/Element.h" | 32 #include "core/dom/Element.h" |
| 33 #include "core/dom/NodeTraversal.h" | 33 #include "core/dom/NodeTraversal.h" |
| 34 #include "core/dom/Text.h" | 34 #include "core/dom/Text.h" |
| 35 #include "core/dom/shadow/ComposedTreeTraversal.h" | 35 #include "core/dom/shadow/FlatTreeTraversal.h" |
| 36 #include "core/html/HTMLDListElement.h" | 36 #include "core/html/HTMLDListElement.h" |
| 37 #include "core/html/HTMLFieldSetElement.h" | 37 #include "core/html/HTMLFieldSetElement.h" |
| 38 #include "core/html/HTMLFrameElementBase.h" | 38 #include "core/html/HTMLFrameElementBase.h" |
| 39 #include "core/html/HTMLImageElement.h" | 39 #include "core/html/HTMLImageElement.h" |
| 40 #include "core/html/HTMLInputElement.h" | 40 #include "core/html/HTMLInputElement.h" |
| 41 #include "core/html/HTMLLabelElement.h" | 41 #include "core/html/HTMLLabelElement.h" |
| 42 #include "core/html/HTMLLegendElement.h" | 42 #include "core/html/HTMLLegendElement.h" |
| 43 #include "core/html/HTMLMediaElement.h" | 43 #include "core/html/HTMLMediaElement.h" |
| 44 #include "core/html/HTMLMeterElement.h" | 44 #include "core/html/HTMLMeterElement.h" |
| 45 #include "core/html/HTMLPlugInElement.h" | 45 #include "core/html/HTMLPlugInElement.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 if (node()->isLink() || (isHTMLAnchorElement(*node()) && isClickable())) | 325 if (node()->isLink() || (isHTMLAnchorElement(*node()) && isClickable())) |
| 326 return LinkRole; | 326 return LinkRole; |
| 327 | 327 |
| 328 if (isHTMLButtonElement(*node())) | 328 if (isHTMLButtonElement(*node())) |
| 329 return buttonRoleType(); | 329 return buttonRoleType(); |
| 330 | 330 |
| 331 if (isHTMLDetailsElement(*node())) | 331 if (isHTMLDetailsElement(*node())) |
| 332 return DetailsRole; | 332 return DetailsRole; |
| 333 | 333 |
| 334 if (isHTMLSummaryElement(*node())) { | 334 if (isHTMLSummaryElement(*node())) { |
| 335 ContainerNode* parent = ComposedTreeTraversal::parent(*node()); | 335 ContainerNode* parent = FlatTreeTraversal::parent(*node()); |
| 336 if (parent && isHTMLDetailsElement(parent)) | 336 if (parent && isHTMLDetailsElement(parent)) |
| 337 return DisclosureTriangleRole; | 337 return DisclosureTriangleRole; |
| 338 return UnknownRole; | 338 return UnknownRole; |
| 339 } | 339 } |
| 340 | 340 |
| 341 if (isHTMLInputElement(*node())) { | 341 if (isHTMLInputElement(*node())) { |
| 342 HTMLInputElement& input = toHTMLInputElement(*node()); | 342 HTMLInputElement& input = toHTMLInputElement(*node()); |
| 343 const AtomicString& type = input.type(); | 343 const AtomicString& type = input.type(); |
| 344 if (input.dataList()) | 344 if (input.dataList()) |
| 345 return ComboBoxRole; | 345 return ComboBoxRole; |
| (...skipping 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2751 return placeholder; | 2751 return placeholder; |
| 2752 } | 2752 } |
| 2753 | 2753 |
| 2754 DEFINE_TRACE(AXNodeObject) | 2754 DEFINE_TRACE(AXNodeObject) |
| 2755 { | 2755 { |
| 2756 visitor->trace(m_node); | 2756 visitor->trace(m_node); |
| 2757 AXObject::trace(visitor); | 2757 AXObject::trace(visitor); |
| 2758 } | 2758 } |
| 2759 | 2759 |
| 2760 } // namespace blink | 2760 } // namespace blink |
| OLD | NEW |