| Index: Source/core/rendering/RenderLayerScrollableArea.cpp
|
| diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| index 591abf0e3a4161669ef8099d60cfe71f1d77f50e..965e67355a15887a0aa1aefb877bf1021dec2eb5 100644
|
| --- a/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| +++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
|
| @@ -49,6 +49,7 @@
|
| #include "core/editing/FrameSelection.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/frame/Settings.h"
|
| #include "core/html/HTMLFrameOwnerElement.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/page/EventHandler.h"
|
| @@ -475,6 +476,20 @@ IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const
|
| return m_box->frame() ? m_box->frame()->eventHandler().lastKnownMousePosition() : IntPoint();
|
| }
|
|
|
| +bool RenderLayerScrollableArea::scrollAnimatorEnabled() const
|
| +{
|
| + return m_box->frame()->settings() && m_box->frame()->settings()->scrollAnimatorEnabled();
|
| +}
|
| +
|
| +bool RenderLayerScrollableArea::scheduleAnimation()
|
| +{
|
| + if (HostWindow* window = m_box->frameView()->hostWindow()) {
|
| + window->scheduleAnimation();
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| bool RenderLayerScrollableArea::shouldSuspendScrollAnimations() const
|
| {
|
| RenderView* view = m_box->view();
|
|
|