| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 AXObjectCache* AXObject::axObjectCache() const | 158 AXObjectCache* AXObject::axObjectCache() const |
| 159 { | 159 { |
| 160 Document* doc = document(); | 160 Document* doc = document(); |
| 161 if (doc) | 161 if (doc) |
| 162 return doc->axObjectCache(); | 162 return doc->axObjectCache(); |
| 163 return 0; | 163 return 0; |
| 164 } | 164 } |
| 165 | 165 |
| 166 void AXObject::updateBackingStore() | |
| 167 { | |
| 168 // Updating the layout may delete this object. | |
| 169 if (Document* document = this->document()) | |
| 170 document->updateLayoutIgnorePendingStylesheets(); | |
| 171 } | |
| 172 | |
| 173 bool AXObject::isARIATextControl() const | 166 bool AXObject::isARIATextControl() const |
| 174 { | 167 { |
| 175 return ariaRoleAttribute() == TextAreaRole || ariaRoleAttribute() == TextFie
ldRole; | 168 return ariaRoleAttribute() == TextAreaRole || ariaRoleAttribute() == TextFie
ldRole; |
| 176 } | 169 } |
| 177 | 170 |
| 178 bool AXObject::isButton() const | 171 bool AXObject::isButton() const |
| 179 { | 172 { |
| 180 AccessibilityRole role = roleValue(); | 173 AccessibilityRole role = roleValue(); |
| 181 | 174 |
| 182 return role == ButtonRole || role == PopUpButtonRole || role == ToggleButton
Role; | 175 return role == ButtonRole || role == PopUpButtonRole || role == ToggleButton
Role; |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 return ToggleButtonRole; | 890 return ToggleButtonRole; |
| 898 if (ariaHasPopup()) | 891 if (ariaHasPopup()) |
| 899 return PopUpButtonRole; | 892 return PopUpButtonRole; |
| 900 // We don't contemplate RadioButtonRole, as it depends on the input | 893 // We don't contemplate RadioButtonRole, as it depends on the input |
| 901 // type. | 894 // type. |
| 902 | 895 |
| 903 return ButtonRole; | 896 return ButtonRole; |
| 904 } | 897 } |
| 905 | 898 |
| 906 } // namespace WebCore | 899 } // namespace WebCore |
| OLD | NEW |