| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 515 |
| 516 if (getNode()->nodeName() == "TIME") | 516 if (getNode()->nodeName() == "TIME") |
| 517 return TimeRole; | 517 return TimeRole; |
| 518 | 518 |
| 519 if (isEmbeddedObject()) | 519 if (isEmbeddedObject()) |
| 520 return EmbeddedObjectRole; | 520 return EmbeddedObjectRole; |
| 521 | 521 |
| 522 if (isHTMLHRElement(*getNode())) | 522 if (isHTMLHRElement(*getNode())) |
| 523 return SplitterRole; | 523 return SplitterRole; |
| 524 | 524 |
| 525 if (isFieldset()) { | |
| 526 return GroupRole; | |
| 527 } | |
| 528 | |
| 529 return UnknownRole; | 525 return UnknownRole; |
| 530 } | 526 } |
| 531 | 527 |
| 532 AccessibilityRole AXNodeObject::determineAccessibilityRole() | 528 AccessibilityRole AXNodeObject::determineAccessibilityRole() |
| 533 { | 529 { |
| 534 if (!getNode()) | 530 if (!getNode()) |
| 535 return UnknownRole; | 531 return UnknownRole; |
| 536 | 532 |
| 537 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) | 533 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) |
| 538 return m_ariaRole; | 534 return m_ariaRole; |
| (...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2904 return placeholder; | 2900 return placeholder; |
| 2905 } | 2901 } |
| 2906 | 2902 |
| 2907 DEFINE_TRACE(AXNodeObject) | 2903 DEFINE_TRACE(AXNodeObject) |
| 2908 { | 2904 { |
| 2909 visitor->trace(m_node); | 2905 visitor->trace(m_node); |
| 2910 AXObject::trace(visitor); | 2906 AXObject::trace(visitor); |
| 2911 } | 2907 } |
| 2912 | 2908 |
| 2913 } // namespace blink | 2909 } // namespace blink |
| OLD | NEW |