Index: Source/core/accessibility/AccessibilityScrollView.cpp |
diff --git a/Source/core/accessibility/AccessibilityScrollView.cpp b/Source/core/accessibility/AccessibilityScrollView.cpp |
index 3e13f5bae7152fad8117e4ecfcc0bb06246f4bd9..5f52dca574fc5ef7c81520f69acdcfc996fd7ebf 100644 |
--- a/Source/core/accessibility/AccessibilityScrollView.cpp |
+++ b/Source/core/accessibility/AccessibilityScrollView.cpp |
@@ -128,7 +128,7 @@ AccessibilityScrollbar* AccessibilityScrollView::addChildScrollbar(Scrollbar* sc |
if (!scrollbar) |
return 0; |
- AccessibilityScrollbar* scrollBarObject = static_cast<AccessibilityScrollbar*>(axObjectCache()->getOrCreate(scrollbar)); |
+ AccessibilityScrollbar* scrollBarObject = toAccessibilityScrollbar(axObjectCache()->getOrCreate(scrollbar)); |
scrollBarObject->setParent(this); |
m_children.append(scrollBarObject); |
return scrollBarObject; |