Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: Source/core/accessibility/AXObject.cpp

Issue 286143008: Make AX update layout on all frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More strict assert Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698