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

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

Issue 2753933005: cc: Move Layer Id to Node Map to Individual Property Tree Private (Closed)
Patch Set: renaming clean up Created 3 years, 9 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/PaintArtifactCompositorTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
index e770539f028c02b239265ab568cbfb6ae50f6d46..dda382c44e5da4f5630997b5954190f0d7e35b2b 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
@@ -724,9 +724,9 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, OneScrollNode) {
auto* layer = contentLayerAt(0);
EXPECT_EQ(layer->id(), scrollNode.owning_layer_id);
- auto scrollNodeIndexIt =
- propertyTrees().layer_id_to_scroll_node_index.find(layer->id());
- EXPECT_EQ(scrollNodeIndexIt->second, scrollNode.id);
+ auto scrollNodeIndex =
+ propertyTrees().scroll_tree.FindNodeIndexFromOwningLayerId(layer->id());
+ EXPECT_EQ(scrollNodeIndex, scrollNode.id);
EXPECT_EQ(0u, scrollClient.didScrollCount);
layer->SetScrollOffsetFromImplSide(gfx::ScrollOffset(1, 2));
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | third_party/WebKit/Source/platform/graphics/compositing/PropertyTreeManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698