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

Unified Diff: Source/WebCore/editing/mac/FrameSelectionMac.mm

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
Index: Source/WebCore/editing/mac/FrameSelectionMac.mm
===================================================================
--- Source/WebCore/editing/mac/FrameSelectionMac.mm (revision 146890)
+++ Source/WebCore/editing/mac/FrameSelectionMac.mm (working copy)
@@ -49,10 +49,8 @@
{
Document* document = m_frame->document();
- if (m_selection.start().isNotNull() && m_selection.end().isNotNull()) {
- if (AXObjectCache* cache = document->existingAXObjectCache())
- cache->postNotification(m_selection.start().deprecatedNode()->renderer(), AXObjectCache::AXSelectedTextChanged, false);
- }
+ if (AXObjectCache::accessibilityEnabled() && m_selection.start().isNotNull() && m_selection.end().isNotNull())
+ document->axObjectCache()->postNotification(m_selection.start().deprecatedNode()->renderer(), AXObjectCache::AXSelectedTextChanged, false);
// if zoom feature is enabled, insertion point changes should update the zoom
if (!UAZoomEnabled() || !m_selection.isCaret())
« no previous file with comments | « Source/WebCore/editing/chromium/FrameSelectionChromium.cpp ('k') | Source/WebCore/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698