| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 AXObject* parent = parentObject(); | 1006 AXObject* parent = parentObject(); |
| 1007 if (!parent) | 1007 if (!parent) |
| 1008 return false; | 1008 return false; |
| 1009 | 1009 |
| 1010 int role = roleValue(); | 1010 int role = roleValue(); |
| 1011 int parentRole = parent->roleValue(); | 1011 int parentRole = parent->roleValue(); |
| 1012 | 1012 |
| 1013 if ((role == ListBoxOptionRole && parentRole == ListBoxRole) | 1013 if ((role == ListBoxOptionRole && parentRole == ListBoxRole) |
| 1014 || (role == ListItemRole && parentRole == ListRole) | 1014 || (role == ListItemRole && parentRole == ListRole) |
| 1015 || (role == MenuItemRole && parentRole == MenuRole) | 1015 || (role == MenuItemRole && parentRole == MenuRole) |
| 1016 || (role == RadioButtonRole && parentRole == RadioGroupRole) | 1016 || (role == RadioButtonRole) |
| 1017 || (role == TabRole && parentRole == TabListRole) | 1017 || (role == TabRole && parentRole == TabListRole) |
| 1018 || (role == TreeItemRole && parentRole == TreeRole)) | 1018 || (role == TreeItemRole && parentRole == TreeRole)) |
| 1019 return true; | 1019 return true; |
| 1020 | 1020 |
| 1021 return false; | 1021 return false; |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 int AXObject::indexInParent() const | 1024 int AXObject::indexInParent() const |
| 1025 { | 1025 { |
| 1026 if (!parentObject()) | 1026 if (!parentObject()) |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 | 1688 |
| 1689 DEFINE_TRACE(AXObject) | 1689 DEFINE_TRACE(AXObject) |
| 1690 { | 1690 { |
| 1691 visitor->trace(m_children); | 1691 visitor->trace(m_children); |
| 1692 visitor->trace(m_parent); | 1692 visitor->trace(m_parent); |
| 1693 visitor->trace(m_cachedLiveRegionRoot); | 1693 visitor->trace(m_cachedLiveRegionRoot); |
| 1694 visitor->trace(m_axObjectCache); | 1694 visitor->trace(m_axObjectCache); |
| 1695 } | 1695 } |
| 1696 | 1696 |
| 1697 } // namespace blink | 1697 } // namespace blink |
| OLD | NEW |