| Index: Source/WebCore/platform/ScrollView.cpp
|
| ===================================================================
|
| --- Source/WebCore/platform/ScrollView.cpp (revision 146890)
|
| +++ Source/WebCore/platform/ScrollView.cpp (working copy)
|
| @@ -99,8 +99,8 @@
|
| m_horizontalScrollbar = 0;
|
| }
|
|
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->handleScrollbarUpdate(this);
|
| + if (AXObjectCache::accessibilityEnabled() && axObjectCache())
|
| + axObjectCache()->handleScrollbarUpdate(this);
|
| }
|
|
|
| void ScrollView::setHasVerticalScrollbar(bool hasBar)
|
| @@ -117,8 +117,8 @@
|
| m_verticalScrollbar = 0;
|
| }
|
|
|
| - if (AXObjectCache* cache = axObjectCache())
|
| - cache->handleScrollbarUpdate(this);
|
| + if (AXObjectCache::accessibilityEnabled() && axObjectCache())
|
| + axObjectCache()->handleScrollbarUpdate(this);
|
| }
|
|
|
| #if !PLATFORM(GTK)
|
|
|