| 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/layout/LayoutTestHelper.h" | 7 #include "core/layout/LayoutTestHelper.h" |
| 8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 LayoutObject* layoutObject = bodyLayoutObject->slowFirstChild()->slowFirstCh
ild(); | 102 LayoutObject* layoutObject = bodyLayoutObject->slowFirstChild()->slowFirstCh
ild(); |
| 103 | 103 |
| 104 // Sanity check: Make sure we don't generate anonymous objects. | 104 // Sanity check: Make sure we don't generate anonymous objects. |
| 105 EXPECT_EQ(nullptr, bodyLayoutObject->slowFirstChild()->nextSibling()); | 105 EXPECT_EQ(nullptr, bodyLayoutObject->slowFirstChild()->nextSibling()); |
| 106 EXPECT_EQ(nullptr, layoutObject->slowFirstChild()); | 106 EXPECT_EQ(nullptr, layoutObject->slowFirstChild()); |
| 107 EXPECT_EQ(nullptr, layoutObject->nextSibling()); | 107 EXPECT_EQ(nullptr, layoutObject->nextSibling()); |
| 108 | 108 |
| 109 EXPECT_EQ(layoutObject->containingBlock(), bodyLayoutObject); | 109 EXPECT_EQ(layoutObject->containingBlock(), bodyLayoutObject); |
| 110 } | 110 } |
| 111 | 111 |
| 112 TEST_F(LayoutObjectTest, PaintingLayerOfOverflowClipLayerUnderColumnSpanAll) |
| 113 { |
| 114 setBodyInnerHTML( |
| 115 "<div id='columns' style='columns: 3'>" |
| 116 " <div style='column-span: all'>" |
| 117 " <div id='overflow-clip-layer' style='height: 100px; overflow: hidde
n'></div>" |
| 118 " </div>" |
| 119 "</div>"); |
| 120 |
| 121 LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip
-layer"); |
| 122 LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns")); |
| 123 EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer()); |
| 124 } |
| 125 |
| 112 } // namespace blink | 126 } // namespace blink |
| OLD | NEW |