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/paint/PaintPropertyTreeBuilderTest.h" | 5 #include "core/paint/PaintPropertyTreeBuilderTest.h" |
6 | 6 |
7 #include "core/html/HTMLIFrameElement.h" | 7 #include "core/html/HTMLIFrameElement.h" |
8 #include "core/layout/LayoutTreeAsText.h" | 8 #include "core/layout/LayoutTreeAsText.h" |
9 #include "core/paint/ObjectPaintProperties.h" | 9 #include "core/paint/ObjectPaintProperties.h" |
10 #include "core/paint/PaintPropertyTreePrinter.h" | 10 #include "core/paint/PaintPropertyTreePrinter.h" |
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 TEST_P(PaintPropertyTreeBuilderTest, TransformOriginWithAndWithoutMotionPath) { | 3102 TEST_P(PaintPropertyTreeBuilderTest, TransformOriginWithAndWithoutMotionPath) { |
3103 SetBodyInnerHTML( | 3103 SetBodyInnerHTML( |
3104 "<style>" | 3104 "<style>" |
3105 " body { margin: 0 }" | 3105 " body { margin: 0 }" |
3106 " div {" | 3106 " div {" |
3107 " width: 100px;" | 3107 " width: 100px;" |
3108 " height: 100px;" | 3108 " height: 100px;" |
3109 " }" | 3109 " }" |
3110 " #motionPath {" | 3110 " #motionPath {" |
3111 " position: absolute;" | 3111 " position: absolute;" |
3112 " motion-path: path('M0 0 L 200 400');" | 3112 " offset-path: path('M0 0 L 200 400');" |
3113 " motion-offset: 50%;" | 3113 " offset-distance: 50%;" |
3114 " motion-rotation: 0deg;" | 3114 " offset-rotate: 0deg;" |
3115 " transform-origin: 50% 50% 0;" | 3115 " transform-origin: 50% 50% 0;" |
3116 " }" | 3116 " }" |
3117 " #willChange {" | 3117 " #willChange {" |
3118 " will-change: opacity;" | 3118 " will-change: opacity;" |
3119 " transform-origin: 50% 50% 0;" | 3119 " transform-origin: 50% 50% 0;" |
3120 " }" | 3120 " }" |
3121 "</style>" | 3121 "</style>" |
3122 "<div id='motionPath'></div>" | 3122 "<div id='motionPath'></div>" |
3123 "<div id='willChange'></div>"); | 3123 "<div id='willChange'></div>"); |
3124 | 3124 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3470 | 3470 |
3471 LayoutObject& svg_root = | 3471 LayoutObject& svg_root = |
3472 *GetDocument().GetElementById("svgroot")->GetLayoutObject(); | 3472 *GetDocument().GetElementById("svgroot")->GetLayoutObject(); |
3473 const ObjectPaintProperties* svg_root_properties = svg_root.PaintProperties(); | 3473 const ObjectPaintProperties* svg_root_properties = svg_root.PaintProperties(); |
3474 EXPECT_TRUE(svg_root_properties->Effect()); | 3474 EXPECT_TRUE(svg_root_properties->Effect()); |
3475 EXPECT_EQ(EffectPaintPropertyNode::Root(), | 3475 EXPECT_EQ(EffectPaintPropertyNode::Root(), |
3476 svg_root_properties->Effect()->Parent()); | 3476 svg_root_properties->Effect()->Parent()); |
3477 } | 3477 } |
3478 | 3478 |
3479 } // namespace blink | 3479 } // namespace blink |
OLD | NEW |