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

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

Issue 2877033002: Fix cc scrollbar layer issues with initialization, and use element ids throughout. (Closed)
Patch Set: none Created 3 years, 7 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 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;

Powered by Google App Engine
This is Rietveld 408576698