| 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 |
| 525 return UnknownRole; | 529 return UnknownRole; |
| 526 } | 530 } |
| 527 | 531 |
| 528 AccessibilityRole AXNodeObject::determineAccessibilityRole() | 532 AccessibilityRole AXNodeObject::determineAccessibilityRole() |
| 529 { | 533 { |
| 530 if (!getNode()) | 534 if (!getNode()) |
| 531 return UnknownRole; | 535 return UnknownRole; |
| 532 | 536 |
| 533 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) | 537 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) |
| 534 return m_ariaRole; | 538 return m_ariaRole; |
| (...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2900 return placeholder; | 2904 return placeholder; |
| 2901 } | 2905 } |
| 2902 | 2906 |
| 2903 DEFINE_TRACE(AXNodeObject) | 2907 DEFINE_TRACE(AXNodeObject) |
| 2904 { | 2908 { |
| 2905 visitor->trace(m_node); | 2909 visitor->trace(m_node); |
| 2906 AXObject::trace(visitor); | 2910 AXObject::trace(visitor); |
| 2907 } | 2911 } |
| 2908 | 2912 |
| 2909 } // namespace blink | 2913 } // namespace blink |
| OLD | NEW |