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

Unified Diff: Source/core/frame/PinchViewport.h

Issue 308183002: Made root translation layer the root when using pinch virtual viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PinchViewport.h
diff --git a/Source/core/frame/PinchViewport.h b/Source/core/frame/PinchViewport.h
index 3565dafce63376422446c811876ca2368050938f..0c814fdcb4a628d2f3ea17bd8a18adb7420ae06a 100644
--- a/Source/core/frame/PinchViewport.h
+++ b/Source/core/frame/PinchViewport.h
@@ -69,7 +69,12 @@ public:
void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*);
GraphicsLayer* rootGraphicsLayer()
{
- return m_innerViewportContainerLayer.get();
+ return m_rootTransformLayer.get();
+ }
+
+ GraphicsLayer* rootTransformLayer()
+ {
+ return m_rootTransformLayer.get();
Ian Vollick 2014/06/04 13:22:12 why two accessors for the same value?
bokan 2014/06/04 15:12:26 You're right, this is overly verbose. Removed.
}
// Sets the location of the inner viewport relative to the outer viewport. The
@@ -132,6 +137,7 @@ private:
LocalFrame* mainFrame() const;
FrameHost& m_frameHost;
+ OwnPtr<GraphicsLayer> m_rootTransformLayer;
OwnPtr<GraphicsLayer> m_innerViewportContainerLayer;
OwnPtr<GraphicsLayer> m_pageScaleLayer;
OwnPtr<GraphicsLayer> m_innerViewportScrollLayer;
« no previous file with comments | « no previous file | Source/core/frame/PinchViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698