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

Unified Diff: webkit/renderer/compositor_bindings/web_layer_impl.cc

Issue 18400003: cc: Consider scroll offset in CalcDrawProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a gyp variable Created 7 years, 5 months 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 | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/compositor_bindings/web_layer_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.cc b/webkit/renderer/compositor_bindings/web_layer_impl.cc
index b984ce8b73f458287a6700442f160ec32b2c6604..4969077605d862dec49127fc7684750e36b25e19 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
@@ -227,11 +227,6 @@ void WebLayerImpl::setForceRenderSurface(bool force_render_surface) {
void WebLayerImpl::setScrollPosition(WebKit::WebPoint position) {
layer_->SetScrollOffset(gfx::Point(position).OffsetFromOrigin());
- // TODO(enne): Blink currently always updates scroll offset and layer position
- // in tandem for frames in RenderLayerCompositor::frameViewDidScroll.
- // So that this can be removed in Blink, temporarily do that work here.
- // See: http://crbug.com/256381
- layer_->SetPosition(gfx::PointAtOffsetFromOrigin(-layer_->scroll_offset()));
}
WebKit::WebPoint WebLayerImpl::scrollPosition() const {
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698