Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698