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

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

Issue 2014093002: Fix LayoutObject::paintingLayer() about multicol spanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698