| 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 d80dd61f5d2d94cb5f8e3a4c91e88c0358440e2a..c4b046ed7b2d5315d58cbea1cbe33ddfaea74c01 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp
|
| @@ -24,10 +24,12 @@ CompositorMutableStateProvider::~CompositorMutableStateProvider() {}
|
|
|
| std::unique_ptr<CompositorMutableState>
|
| CompositorMutableStateProvider::GetMutableStateFor(uint64_t element_id) {
|
| - cc::LayerImpl* main_layer = tree_->LayerByElementId(
|
| - CreateCompositorElementId(element_id, CompositorSubElementId::kPrimary));
|
| - cc::LayerImpl* scroll_layer = tree_->LayerByElementId(
|
| - CreateCompositorElementId(element_id, CompositorSubElementId::kScroll));
|
| + cc::LayerImpl* main_layer =
|
| + tree_->LayerByElementId(CompositorElementIdFromDOMNodeId(
|
| + element_id, CompositorElementIdNamespace::kPrimary));
|
| + cc::LayerImpl* scroll_layer =
|
| + tree_->LayerByElementId(CompositorElementIdFromDOMNodeId(
|
| + element_id, CompositorElementIdNamespace::kScroll));
|
|
|
| if (!main_layer && !scroll_layer)
|
| return nullptr;
|
|
|