| 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 // We don't contemplate RadioButtonRole, as it depends on the input | 965 // We don't contemplate RadioButtonRole, as it depends on the input |
| 966 // type. | 966 // type. |
| 967 | 967 |
| 968 return ButtonRole; | 968 return ButtonRole; |
| 969 } | 969 } |
| 970 | 970 |
| 971 bool AXObject::ariaIsHidden() const | 971 bool AXObject::ariaIsHidden() const |
| 972 { | 972 { |
| 973 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "true")) | 973 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "true")) |
| 974 return true; | 974 return true; |
| 975 if (node() && node()->isInert()) |
| 976 return true; |
| 975 | 977 |
| 976 for (AXObject* object = parentObject(); object; object = object->parentObjec
t()) { | 978 for (AXObject* object = parentObject(); object; object = object->parentObjec
t()) { |
| 977 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) | 979 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) |
| 978 return true; | 980 return true; |
| 979 } | 981 } |
| 980 | 982 |
| 981 return false; | 983 return false; |
| 982 } | 984 } |
| 983 | 985 |
| 984 } // namespace WebCore | 986 } // namespace WebCore |
| OLD | NEW |