Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1870)

Unified Diff: Source/web/ScrollbarGroup.cpp

Issue 65573002: Remove Scrollbar dependency on AXObjectCache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698