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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 if (getNode()->nodeName() == "TIME") | 531 if (getNode()->nodeName() == "TIME") |
532 return TimeRole; | 532 return TimeRole; |
533 | 533 |
534 if (isEmbeddedObject()) | 534 if (isEmbeddedObject()) |
535 return EmbeddedObjectRole; | 535 return EmbeddedObjectRole; |
536 | 536 |
537 if (isHTMLHRElement(*getNode())) | 537 if (isHTMLHRElement(*getNode())) |
538 return SplitterRole; | 538 return SplitterRole; |
539 | 539 |
| 540 if (isFieldset()) { |
| 541 return GroupRole; |
| 542 } |
| 543 |
540 return UnknownRole; | 544 return UnknownRole; |
541 } | 545 } |
542 | 546 |
543 AccessibilityRole AXNodeObject::determineAccessibilityRole() | 547 AccessibilityRole AXNodeObject::determineAccessibilityRole() |
544 { | 548 { |
545 if (!getNode()) | 549 if (!getNode()) |
546 return UnknownRole; | 550 return UnknownRole; |
547 | 551 |
548 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) | 552 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) |
549 return m_ariaRole; | 553 return m_ariaRole; |
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 return placeholder; | 2938 return placeholder; |
2935 } | 2939 } |
2936 | 2940 |
2937 DEFINE_TRACE(AXNodeObject) | 2941 DEFINE_TRACE(AXNodeObject) |
2938 { | 2942 { |
2939 visitor->trace(m_node); | 2943 visitor->trace(m_node); |
2940 AXObject::trace(visitor); | 2944 AXObject::trace(visitor); |
2941 } | 2945 } |
2942 | 2946 |
2943 } // namespace blink | 2947 } // namespace blink |
OLD | NEW |