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

Unified Diff: Source/core/platform/Scrollbar.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/platform/Scrollbar.h ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/Scrollbar.cpp
diff --git a/Source/core/platform/Scrollbar.cpp b/Source/core/platform/Scrollbar.cpp
index a5fd76f2a5861dced72a39e7ef94fa3ce4260158..556a50c8708c50262b0c589d5e65e6554d99dc6c 100644
--- a/Source/core/platform/Scrollbar.cpp
+++ b/Source/core/platform/Scrollbar.cpp
@@ -33,7 +33,6 @@
#include "core/platform/graphics/GraphicsContext.h"
// FIXME: The following #includes are a layering violation and should be removed.
-#include "core/accessibility/AXObjectCache.h"
#include "core/page/EventHandler.h"
#include "core/frame/Frame.h"
#include "core/frame/FrameView.h"
@@ -93,9 +92,6 @@ Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient
Scrollbar::~Scrollbar()
{
- if (AXObjectCache* cache = existingAXObjectCache())
- cache->remove(this);
-
stopTimerIfNeeded();
m_theme->unregisterScrollbar(this);
@@ -558,14 +554,6 @@ bool Scrollbar::isWindowActive() const
return m_scrollableArea && m_scrollableArea->isActive();
}
-AXObjectCache* Scrollbar::existingAXObjectCache() const
-{
- if (!parentScrollView())
- return 0;
-
- return parentScrollView()->axObjectCache();
-}
-
void Scrollbar::invalidateRect(const IntRect& rect)
{
if (suppressInvalidation())
« no previous file with comments | « Source/core/platform/Scrollbar.h ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698