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/LayoutObject.h" | 5 #include "core/layout/LayoutObject.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
8 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
9 #include "core/layout/LayoutView.h" | 9 #include "core/layout/LayoutView.h" |
10 #include "core/layout/api/LayoutAPIShim.h" | 10 #include "core/layout/api/LayoutAPIShim.h" |
| 11 #include "core/layout/api/LayoutViewItem.h" |
11 #include "platform/json/JSONValues.h" | 12 #include "platform/json/JSONValues.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class LayoutObjectTest : public RenderingTest { | 17 class LayoutObjectTest : public RenderingTest { |
17 public: | 18 public: |
18 LayoutObjectTest() | 19 LayoutObjectTest() |
19 : RenderingTest(SingleChildFrameLoaderClient::create()) {} | 20 : RenderingTest(SingleChildFrameLoaderClient::create()) {} |
20 protected: | 21 protected: |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 " <div id='overflow-clip-layer' style='height: 100px; overflow: hidde
n'></div>" | 121 " <div id='overflow-clip-layer' style='height: 100px; overflow: hidde
n'></div>" |
121 " </div>" | 122 " </div>" |
122 "</div>"); | 123 "</div>"); |
123 | 124 |
124 LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip
-layer"); | 125 LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip
-layer"); |
125 LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns")); | 126 LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns")); |
126 EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer()); | 127 EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer()); |
127 } | 128 } |
128 | 129 |
129 } // namespace blink | 130 } // namespace blink |
OLD | NEW |