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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 1526093006: Fix paint code so that overlays and views paint their own layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index f8c396bf23d65aa25220901d4e1a070ed11d4873..0020f3e809016c876b3d34557943c83fbd44281f 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -273,16 +273,18 @@ bool VisualViewport::magnifyScaleAroundAnchor(float magnifyDelta, const FloatPoi
//
// *rootTransformLayer
// +- *innerViewportContainerLayer (fixed pos container)
-// | +- *overscrollElasticityLayer
-// | +- *pageScaleLayer
-// | +- *innerViewportScrollLayer
-// | +-- overflowControlsHostLayer (root layer)
-// | +-- outerViewportContainerLayer (fixed pos container) [frame container layer in PaintLayerCompositor]
-// | | +-- outerViewportScrollLayer [frame scroll layer in PaintLayerCompositor]
-// | | +-- content layers ...
-// +- horizontalScrollbarLayer
-// +- verticalScrollbarLayer
-// +- scroll corner (non-overlay only)
+// +- *overscrollElasticityLayer
+// | +- *pageScaleLayer
+// | +- *innerViewportScrollLayer
+// | +-- overflowControlsHostLayer (root layer) [ owned by PaintLayerCompositor ]
+// | +-- outerViewportContainerLayer (fixed pos container) [frame container layer in PaintLayerCompositor]
+// | | +-- outerViewportScrollLayer [frame scroll layer in PaintLayerCompositor]
+// | | +-- content layers ...
+// +- *PageOverlay for InspectorOverlay
+// +- *PageOverlay for ColorOverlay
+// +- horizontalScrollbarLayer [ owned by PaintLayerCompositor ]
+// +- verticalScrollbarLayer [ owned by PaintLayerCompositor ]
+// +- scroll corner (non-overlay only) [ owned by PaintLayerCompositor ]
//
void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot, GraphicsLayerFactory* graphicsLayerFactory)
{
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698