Index: Source/core/accessibility/AXObjectCache.cpp |
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp |
index ad15a32d1ed3c9c5463885d3c55615705dd21c8d..6b1048cb72f007823281cd74d0f0fb0356bacdbb 100644 |
--- a/Source/core/accessibility/AXObjectCache.cpp |
+++ b/Source/core/accessibility/AXObjectCache.cpp |
@@ -317,7 +317,7 @@ AccessibilityObject* AXObjectCache::getOrCreate(Widget* widget) |
RefPtr<AccessibilityObject> newObj = 0; |
if (widget->isFrameView()) |
- newObj = AccessibilityScrollView::create(static_cast<ScrollView*>(widget)); |
+ newObj = AccessibilityScrollView::create(toScrollView(widget)); |
else if (widget->isScrollbar()) |
newObj = AccessibilityScrollbar::create(static_cast<Scrollbar*>(widget)); |
@@ -635,7 +635,7 @@ void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*) |
// Make sure none of the render views are in the process of being layed out. |
// Notifications should only be sent after the renderer has finished |
if (obj->isAccessibilityRenderObject()) { |
- AccessibilityRenderObject* renderObj = static_cast<AccessibilityRenderObject*>(obj); |
+ AccessibilityRenderObject* renderObj = toAccessibilityRenderObject(obj); |
RenderObject* renderer = renderObj->renderer(); |
if (renderer && renderer->view()) |
ASSERT(!renderer->view()->layoutState()); |