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

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

Issue 2428513004: [SPv2] Create effect nodes for CSS filter (Closed)
Patch Set: Created 4 years, 2 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 edc5e78f83ce4ae8f84a831a552b661214f78636..bb7034eaee9b8260524bff982f460ce5b655ee98 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp
@@ -2876,4 +2876,15 @@ TEST_P(PaintPropertyTreeBuilderTest,
EXPECT_TRUE(
getLayoutObjectByElementId("absolute")->container()->isLayoutBlock());
}
+
+TEST_P(PaintPropertyTreeBuilderTest, SimpleFilter) {
+ setBodyInnerHTML(
+ "<div id='filter' style='filter:opacity(0.5); height:1000px;'>"
+ "</div>");
+ const ObjectPaintProperties* filterProperties = getLayoutObjectByElementId("filter")->objectPaintProperties();
+ EXPECT_TRUE(filterProperties->effect()->parent()->isRoot());
+ EXPECT_EQ(frameScrollTranslation(), filterProperties->effect()->localTransformSpace());
+ EXPECT_EQ(frameContentClip(), filterProperties->effect()->outputClip());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698