| 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 15 matching lines...) Expand all Loading... |
| 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 "config.h" | 29 #include "config.h" |
| 30 #include "core/accessibility/AccessibilityNodeObject.h" | 30 #include "core/accessibility/AccessibilityNodeObject.h" |
| 31 | 31 |
| 32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.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/UserGestureIndicator.h" | 35 #include "core/dom/UserGestureIndicator.h" |
| 36 #include "core/html/HTMLFormElement.h" | |
| 37 #include "core/html/HTMLFrameElementBase.h" | 36 #include "core/html/HTMLFrameElementBase.h" |
| 38 #include "core/html/HTMLInputElement.h" | 37 #include "core/html/HTMLInputElement.h" |
| 39 #include "core/html/HTMLLabelElement.h" | 38 #include "core/html/HTMLLabelElement.h" |
| 40 #include "core/html/HTMLSelectElement.h" | 39 #include "core/html/HTMLSelectElement.h" |
| 41 #include "core/html/HTMLTextAreaElement.h" | 40 #include "core/html/HTMLTextAreaElement.h" |
| 42 #include <wtf/StdLibExtras.h> | 41 #include "wtf/text/StringBuilder.h" |
| 43 #include <wtf/text/StringBuilder.h> | |
| 44 #include <wtf/unicode/CharacterNames.h> | |
| 45 | 42 |
| 46 using namespace std; | 43 using namespace std; |
| 47 | 44 |
| 48 namespace WebCore { | 45 namespace WebCore { |
| 49 | 46 |
| 50 using namespace HTMLNames; | 47 using namespace HTMLNames; |
| 51 | 48 |
| 52 AccessibilityNodeObject::AccessibilityNodeObject(Node* node) | 49 AccessibilityNodeObject::AccessibilityNodeObject(Node* node) |
| 53 : AccessibilityObject() | 50 : AccessibilityObject() |
| 54 , m_ariaRole(UnknownRole) | 51 , m_ariaRole(UnknownRole) |
| (...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 useTextUnderElement = true; | 1619 useTextUnderElement = true; |
| 1623 | 1620 |
| 1624 if (useTextUnderElement) { | 1621 if (useTextUnderElement) { |
| 1625 String text = textUnderElement(); | 1622 String text = textUnderElement(); |
| 1626 if (!text.isEmpty()) | 1623 if (!text.isEmpty()) |
| 1627 textOrder.append(AccessibilityText(text, ChildrenText)); | 1624 textOrder.append(AccessibilityText(text, ChildrenText)); |
| 1628 } | 1625 } |
| 1629 } | 1626 } |
| 1630 | 1627 |
| 1631 } // namespace WebCore | 1628 } // namespace WebCore |
| OLD | NEW |