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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.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/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 df88ee803bfa54461706c43cd488b9ee9ce6ef08..f7f132272e8b9a4fc5cf457f4a3f4206fc52a6ef 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -363,8 +363,10 @@ void VisualViewport::CreateLayerTree() {
inner_viewport_scroll_layer_->PlatformLayer()->SetUserScrollable(true, true);
if (MainFrame()) {
if (Document* document = MainFrame()->GetDocument()) {
- inner_viewport_scroll_layer_->SetElementId(CreateCompositorElementId(
- DOMNodeIds::IdForNode(document), CompositorSubElementId::kViewport));
+ inner_viewport_scroll_layer_->SetElementId(
+ CompositorElementIdFromDOMNodeId(
+ DOMNodeIds::IdForNode(document),
+ CompositorElementIdNamespace::kViewport));
}
}

Powered by Google App Engine
This is Rietveld 408576698