| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/layout/LayoutTestHelper.h" | 5 #include "core/layout/LayoutTestHelper.h" |
| 6 #include "core/layout/LayoutTreeAsText.h" | 6 #include "core/layout/LayoutTreeAsText.h" |
| 7 #include "core/layout/api/LayoutViewItem.h" | 7 #include "core/layout/api/LayoutViewItem.h" |
| 8 #include "core/paint/ObjectPaintProperties.h" | 8 #include "core/paint/ObjectPaintProperties.h" |
| 9 #include "core/paint/PaintPropertyTreePrinter.h" | 9 #include "core/paint/PaintPropertyTreePrinter.h" |
| 10 #include "platform/graphics/paint/GeometryMapper.h" | 10 #include "platform/graphics/paint/GeometryMapper.h" |
| (...skipping 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2869 " <div id=spanner style='column-span: all'>" | 2869 " <div id=spanner style='column-span: all'>" |
| 2870 " <div id=absolute style='position: absolute'>absolute</div>" | 2870 " <div id=absolute style='position: absolute'>absolute</div>" |
| 2871 " </div>" | 2871 " </div>" |
| 2872 " </span>" | 2872 " </span>" |
| 2873 "</div>"); | 2873 "</div>"); |
| 2874 // There should be anonymous block created containing the inline "relative", | 2874 // There should be anonymous block created containing the inline "relative", |
| 2875 // serving as the container of "absolute". | 2875 // serving as the container of "absolute". |
| 2876 EXPECT_TRUE( | 2876 EXPECT_TRUE( |
| 2877 getLayoutObjectByElementId("absolute")->container()->isLayoutBlock()); | 2877 getLayoutObjectByElementId("absolute")->container()->isLayoutBlock()); |
| 2878 } | 2878 } |
| 2879 |
| 2880 TEST_P(PaintPropertyTreeBuilderTest, SimpleFilter) { |
| 2881 setBodyInnerHTML( |
| 2882 "<div id='filter' style='filter:opacity(0.5); height:1000px;'>" |
| 2883 "</div>"); |
| 2884 const ObjectPaintProperties* filterProperties = getLayoutObjectByElementId("fi
lter")->objectPaintProperties(); |
| 2885 EXPECT_TRUE(filterProperties->effect()->parent()->isRoot()); |
| 2886 EXPECT_EQ(frameScrollTranslation(), filterProperties->effect()->localTransform
Space()); |
| 2887 EXPECT_EQ(frameContentClip(), filterProperties->effect()->outputClip()); |
| 2888 } |
| 2889 |
| 2879 } // namespace blink | 2890 } // namespace blink |
| OLD | NEW |