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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 " transform: translate3d(4px, 5px, 6px);" | 1163 " transform: translate3d(4px, 5px, 6px);" |
1164 " width: 100px;" | 1164 " width: 100px;" |
1165 " height: 200px;" | 1165 " height: 200px;" |
1166 " }" | 1166 " }" |
1167 "</style>" | 1167 "</style>" |
1168 "<div id='innerDivWithTransform'></div>"); | 1168 "<div id='innerDivWithTransform'></div>"); |
1169 | 1169 |
1170 FrameView* frame_view = GetDocument().View(); | 1170 FrameView* frame_view = GetDocument().View(); |
1171 frame_view->UpdateAllLifecyclePhases(); | 1171 frame_view->UpdateAllLifecyclePhases(); |
1172 | 1172 |
| 1173 LOG(ERROR) << "go"; |
1173 LayoutObject* div_with_transform = | 1174 LayoutObject* div_with_transform = |
1174 GetDocument().getElementById("divWithTransform")->GetLayoutObject(); | 1175 GetDocument().getElementById("divWithTransform")->GetLayoutObject(); |
1175 const ObjectPaintProperties* div_with_transform_properties = | 1176 const ObjectPaintProperties* div_with_transform_properties = |
1176 div_with_transform->PaintProperties(); | 1177 div_with_transform->PaintProperties(); |
1177 EXPECT_EQ(TransformationMatrix().Translate3d(1, 2, 3), | 1178 EXPECT_EQ(TransformationMatrix().Translate3d(1, 2, 3), |
1178 div_with_transform_properties->Transform()->Matrix()); | 1179 div_with_transform_properties->Transform()->Matrix()); |
1179 CHECK_EXACT_VISUAL_RECT(LayoutRect(1, 2, 800, 164), div_with_transform, | 1180 CHECK_EXACT_VISUAL_RECT(LayoutRect(1, 2, 800, 164), div_with_transform, |
1180 frame_view->GetLayoutView()); | 1181 frame_view->GetLayoutView()); |
1181 | 1182 |
1182 LayoutObject* inner_div_with_transform = | 1183 LayoutObject* inner_div_with_transform = |
(...skipping 2287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3470 | 3471 |
3471 LayoutObject& svg_root = | 3472 LayoutObject& svg_root = |
3472 *GetDocument().getElementById("svgroot")->GetLayoutObject(); | 3473 *GetDocument().getElementById("svgroot")->GetLayoutObject(); |
3473 const ObjectPaintProperties* svg_root_properties = svg_root.PaintProperties(); | 3474 const ObjectPaintProperties* svg_root_properties = svg_root.PaintProperties(); |
3474 EXPECT_TRUE(svg_root_properties->Effect()); | 3475 EXPECT_TRUE(svg_root_properties->Effect()); |
3475 EXPECT_EQ(EffectPaintPropertyNode::Root(), | 3476 EXPECT_EQ(EffectPaintPropertyNode::Root(), |
3476 svg_root_properties->Effect()->Parent()); | 3477 svg_root_properties->Effect()->Parent()); |
3477 } | 3478 } |
3478 | 3479 |
3479 } // namespace blink | 3480 } // namespace blink |
OLD | NEW |