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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp

Issue 2292133002: [compositor-worker] root scrolling layer is associated with document scrolling element
Patch Set: Use document instead of documentElement() Created 3 years, 10 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: 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;

Powered by Google App Engine
This is Rietveld 408576698