Index: Source/web/ScrollbarGroup.cpp |
diff --git a/Source/web/ScrollbarGroup.cpp b/Source/web/ScrollbarGroup.cpp |
index e23141c0037ea6e5db9d25dae1c6e74e924ebf98..be29efa852d527f85d91a928f101cfc2e1b67baa 100644 |
--- a/Source/web/ScrollbarGroup.cpp |
+++ b/Source/web/ScrollbarGroup.cpp |
@@ -56,11 +56,11 @@ void ScrollbarGroup::scrollbarCreated(WebPluginScrollbarImpl* scrollbar) |
if (scrollbar->scrollbar()->orientation() == HorizontalScrollbar) { |
ASSERT(!m_horizontalScrollbar); |
m_horizontalScrollbar = scrollbar; |
- didAddHorizontalScrollbar(scrollbar->scrollbar()); |
+ didAddScrollbar(scrollbar->scrollbar(), HorizontalScrollbar); |
} else { |
ASSERT(!m_verticalScrollbar); |
m_verticalScrollbar = scrollbar; |
- didAddVerticalScrollbar(scrollbar->scrollbar()); |
+ didAddScrollbar(scrollbar->scrollbar(), VerticalScrollbar); |
} |
if (!hadScrollbars) { |
@@ -72,11 +72,11 @@ void ScrollbarGroup::scrollbarCreated(WebPluginScrollbarImpl* scrollbar) |
void ScrollbarGroup::scrollbarDestroyed(WebPluginScrollbarImpl* scrollbar) |
{ |
if (scrollbar == m_horizontalScrollbar) { |
- willRemoveHorizontalScrollbar(scrollbar->scrollbar()); |
+ willRemoveScrollbar(scrollbar->scrollbar(), HorizontalScrollbar); |
m_horizontalScrollbar = 0; |
} else { |
ASSERT(scrollbar == m_verticalScrollbar); |
- willRemoveVerticalScrollbar(scrollbar->scrollbar()); |
+ willRemoveScrollbar(scrollbar->scrollbar(), VerticalScrollbar); |
m_verticalScrollbar = 0; |
} |