Index: Source/core/rendering/RenderListBox.cpp |
diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/rendering/RenderListBox.cpp |
index 4b7d575d2cbdd4f9b855aa7a4a96e1317a051529..9b4107844ac12fc80b8efc0ab99d30abfe6358a9 100644 |
--- a/Source/core/rendering/RenderListBox.cpp |
+++ b/Source/core/rendering/RenderListBox.cpp |
@@ -895,7 +895,7 @@ PassRefPtr<Scrollbar> RenderListBox::createScrollbar() |
widget = RenderScrollbar::createCustomScrollbar(this, VerticalScrollbar, this->node()); |
else { |
widget = Scrollbar::create(this, VerticalScrollbar, RenderTheme::theme().scrollbarControlSizeForPart(ListboxPart)); |
- didAddVerticalScrollbar(widget.get()); |
+ didAddScrollbar(widget.get(), VerticalScrollbar); |
} |
document().view()->addChild(widget.get()); |
return widget.release(); |
@@ -907,7 +907,7 @@ void RenderListBox::destroyScrollbar() |
return; |
if (!m_vBar->isCustomScrollbar()) |
- ScrollableArea::willRemoveVerticalScrollbar(m_vBar.get()); |
+ ScrollableArea::willRemoveScrollbar(m_vBar.get(), VerticalScrollbar); |
m_vBar->removeFromParent(); |
m_vBar->disconnectFromScrollableArea(); |
m_vBar = 0; |