diff options
Diffstat (limited to 'webkit/renderer/compositor_bindings/web_compositor_support_impl.cc')
-rw-r--r-- | webkit/renderer/compositor_bindings/web_compositor_support_impl.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc b/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc index a49de09..51bb621 100644 --- a/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc +++ b/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc @@ -19,6 +19,7 @@ #include "webkit/renderer/compositor_bindings/web_image_layer_impl.h" #include "webkit/renderer/compositor_bindings/web_layer_impl.h" #include "webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.h" +#include "webkit/renderer/compositor_bindings/web_scroll_offset_animation_curve_impl.h" #include "webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.h" #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h" #include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.h" @@ -40,6 +41,9 @@ using blink::WebScrollbar; using blink::WebScrollbarLayer; using blink::WebScrollbarThemeGeometry; using blink::WebScrollbarThemePainter; +#if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED +using blink::WebScrollOffsetAnimationCurve; +#endif using blink::WebSolidColorLayer; using blink::WebTransformAnimationCurve; using blink::WebTransformOperations; @@ -106,6 +110,15 @@ WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { return new WebFloatAnimationCurveImpl(); } +#if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED +WebScrollOffsetAnimationCurve* +WebCompositorSupportImpl::createScrollOffsetAnimationCurve( + blink::WebFloatPoint target_value, + blink::WebAnimationCurve::TimingFunctionType timing_function) { + return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function); +} +#endif + WebTransformAnimationCurve* WebCompositorSupportImpl::createTransformAnimationCurve() { return new WebTransformAnimationCurveImpl(); |