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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 199253002: Made PinchViewport a ScrollableArea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 310f49aa6fdae87b1f5245f47aba0d33c7c9498d..26de763f247efa2326063a0c033bda30e885192e 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -1182,6 +1182,8 @@ void GraphicsLayer::setScrollableArea(ScrollableArea* scrollableArea, bool isMai
// Main frame scrolling may involve pinch zoom and gets routed through
// WebViewImpl explicitly rather than via GraphicsLayer::didScroll.
+ // TODO(bokan): With pinch virtual viewport the special case will no
aelias_OOO_until_Jul13 2014/03/24 21:47:24 Could you make this conditional on the pinchVirtua
bokan 2014/03/24 23:36:30 The isMainFrame argument is conditional on that fl
aelias_OOO_until_Jul13 2014/03/25 00:05:48 Yes, I think that would make more sense. Since it
bokan 2014/03/25 00:54:42 It doesn't look like there's any hooks in Graphics
aelias_OOO_until_Jul13 2014/03/25 01:09:00 OK, whatever, the TODO is fine then. No big deal
+ // longer be needed, remove once old-style pinch is gone.
if (isMainFrame)
m_layer->layer()->setScrollClient(0);
else

Powered by Google App Engine
This is Rietveld 408576698