| Index: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| index e5b2392656b9b51e6ebe5048457ad5b56642541a..266fe28ddcfeca2b26b5b5e2f76df025e217f6dd 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| @@ -23,11 +23,14 @@ CompositorMutableStateProvider::CompositorMutableStateProvider(
|
| CompositorMutableStateProvider::~CompositorMutableStateProvider() {}
|
|
|
| std::unique_ptr<CompositorMutableState>
|
| -CompositorMutableStateProvider::getMutableStateFor(uint64_t elementId) {
|
| +CompositorMutableStateProvider::getMutableStateFor(
|
| + uint64_t elementId,
|
| + uint64_t scrollingElementId) {
|
| cc::LayerImpl* mainLayer = m_tree->LayerByElementId(
|
| createCompositorElementId(elementId, CompositorSubElementId::Primary));
|
| - cc::LayerImpl* scrollLayer = m_tree->LayerByElementId(
|
| - createCompositorElementId(elementId, CompositorSubElementId::Scroll));
|
| + cc::LayerImpl* scrollLayer =
|
| + m_tree->LayerByElementId(createCompositorElementId(
|
| + scrollingElementId, CompositorSubElementId::Scroll));
|
|
|
| if (!mainLayer && !scrollLayer)
|
| return nullptr;
|
|
|