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

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

Issue 2638333007: Add compositor element id for scroll nodes in SPv2. (Closed)
Patch Set: Sync to head. 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/core/paint/PaintPropertyTreeBuilderTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
index 8d146dbd29eed715e0b69f1f10c081b945c08aea..472639fcb78bf00f40c1537f20c522299b5209d6 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -3147,4 +3147,15 @@ TEST_P(PaintPropertyTreeBuilderTest, FloatUnderInline) {
EXPECT_EQ(effect, localBorderBoxProperties->effect());
}
+TEST_P(PaintPropertyTreeBuilderTest, ScrollNodeHasCompositorElementId) {
+ setBodyInnerHTML(
+ "<div id='target' style='overflow: auto; width: 100px; height: 100px'>"
+ " <div style='width: 200px; height: 200px'></div>"
+ "</div>");
+
+ const ObjectPaintProperties* properties = paintPropertiesForElement("target");
+ EXPECT_TRUE(properties->scroll());
+ EXPECT_NE(CompositorElementId(), properties->scroll()->compositorElementId());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698