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

Unified Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 641733004: Merge FrameView and ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline. Created 6 years, 2 months 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/accessibility/AXObjectCache.h ('k') | Source/core/accessibility/AXScrollView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index 72c4d73c460468a51bb14236cbd8a0ae24c57391..4548ffe941640490be9c810d3b57e4ff09aa297f 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -56,6 +56,7 @@
#include "core/accessibility/AXTableHeaderContainer.h"
#include "core/accessibility/AXTableRow.h"
#include "core/dom/Document.h"
+#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLAreaElement.h"
@@ -75,7 +76,6 @@
#include "core/rendering/RenderTableCell.h"
#include "core/rendering/RenderTableRow.h"
#include "core/rendering/RenderView.h"
-#include "platform/scroll/ScrollView.h"
#include "wtf/PassRefPtr.h"
namespace blink {
@@ -341,7 +341,7 @@ AXObject* AXObjectCache::getOrCreate(Widget* widget)
RefPtr<AXObject> newObj = nullptr;
if (widget->isFrameView())
- newObj = AXScrollView::create(toScrollView(widget));
+ newObj = AXScrollView::create(toFrameView(widget));
else if (widget->isScrollbar())
newObj = AXScrollbar::create(toScrollbar(widget));
@@ -806,7 +806,7 @@ void AXObjectCache::selectedChildrenChanged(RenderObject* renderer)
postNotification(renderer, AXSelectedChildrenChanged, false);
}
-void AXObjectCache::handleScrollbarUpdate(ScrollView* view)
+void AXObjectCache::handleScrollbarUpdate(FrameView* view)
{
if (!view)
return;
@@ -1027,7 +1027,7 @@ void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode)
postPlatformNotification(AXObject::firstAccessibleObjectFromNode(anchorNode), AXScrolledToAnchor);
}
-void AXObjectCache::handleScrollPositionChanged(ScrollView* scrollView)
+void AXObjectCache::handleScrollPositionChanged(FrameView* scrollView)
{
postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged);
}
« no previous file with comments | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/accessibility/AXScrollView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698