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

Unified Diff: Source/WebCore/html/HTMLInputElement.cpp

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/editing/mac/FrameSelectionMac.mm ('k') | Source/WebCore/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/HTMLInputElement.cpp
===================================================================
--- Source/WebCore/html/HTMLInputElement.cpp (revision 146890)
+++ Source/WebCore/html/HTMLInputElement.cpp (working copy)
@@ -897,10 +897,8 @@
// Ideally we'd do this from the render tree (matching
// RenderTextView), but it's not possible to do it at the moment
// because of the way the code is structured.
- if (renderer()) {
- if (AXObjectCache* cache = renderer()->document()->existingAXObjectCache())
- cache->checkedStateChanged(this);
- }
+ if (renderer() && AXObjectCache::accessibilityEnabled())
+ renderer()->document()->axObjectCache()->checkedStateChanged(this);
// Only send a change event for items in the document (avoid firing during
// parsing) and don't send a change event for a radio button that's getting
« no previous file with comments | « Source/WebCore/editing/mac/FrameSelectionMac.mm ('k') | Source/WebCore/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698