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

Unified Diff: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp

Issue 2359063002: Add static root property tree nodes [spv2] (Closed)
Patch Set: Restore PaintPropertyTreeGraphBuilder root node printing Created 4 years, 3 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/paint/PaintControllerPaintTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
index e15c20228d1180de4c7e27ee3b6afcfa9fe7b87b..4d0adf75a1a06f6d62d454566149aaa290e7e457 100644
--- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
@@ -130,9 +130,12 @@ TEST_F(PaintControllerPaintTestForSlimmingPaintV2, ChunkIdClientCacheFlag)
TestDisplayItem(*layoutView().layer(), DisplayItem::kEndSubsequence),
TestDisplayItem(layoutView(), DisplayItem::clipTypeToEndClipType(DisplayItem::kClipFrameToVisibleContentRect)));
+ const PaintChunk& backgroundChunk = rootPaintController().paintChunks()[0];
+ EXPECT_TRUE(backgroundChunk.properties.scroll->isRoot());
+
const EffectPaintPropertyNode* effectNode = div.objectPaintProperties()->effect();
EXPECT_EQ(0.5f, effectNode->opacity());
- const PaintChunk& chunk = rootPaintController().paintChunks()[2];
+ const PaintChunk& chunk = rootPaintController().paintChunks()[1];
EXPECT_EQ(*div.layer(), chunk.id->client);
EXPECT_EQ(effectNode, chunk.properties.effect.get());

Powered by Google App Engine
This is Rietveld 408576698