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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 792513004: Implement CSSOM smooth scroll for Elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/frame/FrameView.h ('k') | Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 7b42005344ae4e68edc7fdc13e88250f1783d6cb..93f08b03d8b376ef17ba26ce6734a49533be39da 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -2907,6 +2907,21 @@ void FrameView::removeScrollableArea(ScrollableArea* scrollableArea)
m_scrollableAreas->remove(scrollableArea);
}
+void FrameView::addAnimatingScrollableArea(ScrollableArea* scrollableArea)
+{
+ ASSERT(scrollableArea);
+ if (!m_animatingScrollableAreas)
+ m_animatingScrollableAreas = adoptPtr(new ScrollableAreaSet);
+ m_animatingScrollableAreas->add(scrollableArea);
+}
+
+void FrameView::removeAnimatingScrollableArea(ScrollableArea* scrollableArea)
+{
+ if (!m_animatingScrollableAreas)
+ return;
+ m_animatingScrollableAreas->remove(scrollableArea);
+}
+
void FrameView::setParent(Widget* parentView)
{
if (parentView == parent())
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698