Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / scroll / ScrollableArea.cpp
index a3dae50..d6b9c4c 100644 (file)
@@ -32,6 +32,8 @@
 #include "config.h"
 #include "platform/scroll/ScrollableArea.h"
 
+#include "platform/HostWindow.h"
+#include "platform/Logging.h"
 #include "platform/graphics/GraphicsLayer.h"
 #include "platform/geometry/FloatPoint.h"
 #include "platform/scroll/ProgrammaticScrollAnimator.h"
@@ -415,6 +417,15 @@ bool ScrollableArea::hasLayerForScrollCorner() const
     return layerForScrollCorner();
 }
 
+bool ScrollableArea::scheduleAnimation()
+{
+    if (HostWindow* window = hostWindow()) {
+        window->scheduleAnimation();
+        return true;
+    }
+    return false;
+}
+
 void ScrollableArea::serviceScrollAnimations(double monotonicTime)
 {
     if (ScrollAnimator* scrollAnimator = existingScrollAnimator())