| Index: Source/WebCore/loader/FrameLoader.cpp
|
| ===================================================================
|
| --- Source/WebCore/loader/FrameLoader.cpp (revision 146890)
|
| +++ Source/WebCore/loader/FrameLoader.cpp (working copy)
|
| @@ -1120,9 +1120,9 @@
|
| m_client->dispatchDidStartProvisionalLoad();
|
|
|
| // Notify accessibility.
|
| - if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) {
|
| + if (AXObjectCache::accessibilityEnabled()) {
|
| AXObjectCache::AXLoadingEvent loadingEvent = loadType() == FrameLoadTypeReload ? AXObjectCache::AXLoadingReloaded : AXObjectCache::AXLoadingStarted;
|
| - cache->frameLoadingEventNotification(m_frame, loadingEvent);
|
| + m_frame->document()->axObjectCache()->frameLoadingEventNotification(m_frame, loadingEvent);
|
| }
|
| }
|
|
|
| @@ -2209,8 +2209,8 @@
|
| }
|
|
|
| // Notify accessibility.
|
| - if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache())
|
| - cache->frameLoadingEventNotification(m_frame, loadingEvent);
|
| + if (AXObjectCache::accessibilityEnabled())
|
| + m_frame->document()->axObjectCache()->frameLoadingEventNotification(m_frame, loadingEvent);
|
|
|
| return;
|
| }
|
|
|