Index: cc/blink/web_layer_impl.cc |
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc |
index f73ae10429e1174f3c2dc83bd41be82bb1b158f3..6ce8ac5cbcdcc16424a6b5a1591f859744a5d56a 100644 |
--- a/cc/blink/web_layer_impl.cc |
+++ b/cc/blink/web_layer_impl.cc |
@@ -5,10 +5,10 @@ |
#include "cc/blink/web_layer_impl.h" |
#include "base/bind.h" |
-#include "base/debug/trace_event_impl.h" |
#include "base/lazy_instance.h" |
#include "base/strings/string_util.h" |
#include "base/threading/thread_checker.h" |
+#include "base/trace_event/trace_event_impl.h" |
#include "cc/animation/animation.h" |
#include "cc/base/region.h" |
#include "cc/base/switches.h" |
@@ -273,6 +273,12 @@ void WebLayerImpl::setScrollPositionDouble(blink::WebDoublePoint position) { |
layer_->SetScrollOffset(gfx::ScrollOffset(position.x, position.y)); |
} |
+void WebLayerImpl::setScrollCompensationAdjustment( |
+ blink::WebDoublePoint position) { |
+ layer_->SetScrollCompensationAdjustment( |
+ gfx::Vector2dF(position.x, position.y)); |
+} |
+ |
blink::WebDoublePoint WebLayerImpl::scrollPositionDouble() const { |
return blink::WebDoublePoint(layer_->scroll_offset().x(), |
layer_->scroll_offset().y()); |