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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 2667373002: Ensure PaintArtifactCompositor assigns a scroll tree index to all cc layers (Closed)
Patch Set: Created 3 years, 11 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/compositing/PaintArtifactCompositor.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
index d5df483ed1f9c958fec42f2826be75a8333516c3..636b45ce1e44e66b4a337234707fe4286f4a7099 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -723,10 +723,8 @@ void PaintArtifactCompositor::update(
layer->SetTransformTreeIndex(transformId);
layer->SetClipTreeIndex(clipId);
layer->SetEffectTreeIndex(effectId);
- if (const auto* scrollNode = transform->scrollNode()) {
- layer->SetScrollTreeIndex(
- propertyTreeManager.ensureCompositorScrollNode(scrollNode));
- }
+ layer->SetScrollTreeIndex(propertyTreeManager.ensureCompositorScrollNode(
+ transform->findEnclosingScrollNode()));
layer->SetShouldCheckBackfaceVisibility(pendingLayer.backfaceHidden);

Powered by Google App Engine
This is Rietveld 408576698