| 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 85c73df4a0db2517f8a404a18985d24c889f91ff..a7117955412be9fb3c2c8090ab3d7cf861907e80 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "core/frame/VisualViewport.h"
|
|
|
| +#include "core/dom/DOMNodeIds.h"
|
| #include "core/frame/FrameHost.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -47,6 +48,7 @@
|
| #include "platform/TraceEvent.h"
|
| #include "platform/geometry/DoubleRect.h"
|
| #include "platform/geometry/FloatSize.h"
|
| +#include "platform/graphics/CompositorMutableProperties.h"
|
| #include "platform/graphics/GraphicsLayer.h"
|
| #include "platform/scroll/Scrollbar.h"
|
| #include "platform/scroll/ScrollbarThemeOverlay.h"
|
| @@ -407,6 +409,10 @@ void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot)
|
| m_innerViewportScrollLayer->platformLayer()->setScrollClipLayer(
|
| m_innerViewportContainerLayer->platformLayer());
|
| m_innerViewportScrollLayer->platformLayer()->setUserScrollable(true, true);
|
| + if (mainFrame()) {
|
| + if (Document* document = mainFrame()->document())
|
| + m_innerViewportScrollLayer->setElementId(createCompositorElementId(DOMNodeIds::idForNode(document), CompositorSubElementId::Scroll));
|
| + }
|
|
|
| m_rootTransformLayer->addChild(m_innerViewportContainerLayer.get());
|
| m_innerViewportContainerLayer->addChild(m_overscrollElasticityLayer.get());
|
|
|