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 "platform/JSONValues.h" | 11 #include "platform/json/JSONValues.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class LayoutObjectTest : public RenderingTest { | 16 class LayoutObjectTest : public RenderingTest { |
17 public: | 17 public: |
18 LayoutObjectTest() | 18 LayoutObjectTest() |
19 : RenderingTest(SingleChildFrameLoaderClient::create()) {} | 19 : RenderingTest(SingleChildFrameLoaderClient::create()) {} |
20 protected: | 20 protected: |
21 LayoutView& layoutView() const { return *toLayoutView(LayoutAPIShim::layoutO
bjectFrom(document().layoutViewItem())); } | 21 LayoutView& layoutView() const { return *toLayoutView(LayoutAPIShim::layoutO
bjectFrom(document().layoutViewItem())); } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 " <div id='overflow-clip-layer' style='height: 100px; overflow: hidde
n'></div>" | 120 " <div id='overflow-clip-layer' style='height: 100px; overflow: hidde
n'></div>" |
121 " </div>" | 121 " </div>" |
122 "</div>"); | 122 "</div>"); |
123 | 123 |
124 LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip
-layer"); | 124 LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip
-layer"); |
125 LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns")); | 125 LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns")); |
126 EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer()); | 126 EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer()); |
127 } | 127 } |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
OLD | NEW |