OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/LayoutBlock.h" | 5 #include "core/layout/LayoutBlock.h" |
6 #include "core/layout/LayoutInline.h" | 6 #include "core/layout/LayoutInline.h" |
7 #include "core/layout/LayoutTestHelper.h" | 7 #include "core/layout/LayoutTestHelper.h" |
8 #include "core/paint/PaintLayer.h" | 8 #include "core/paint/PaintLayer.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 { | 43 { |
44 setBodyInnerHTML("<div><span id='test' style='contain: paint'>Foo</span></di
v>"); | 44 setBodyInnerHTML("<div><span id='test' style='contain: paint'>Foo</span></di
v>"); |
45 Element* span = document().getElementById(AtomicString("test")); | 45 Element* span = document().getElementById(AtomicString("test")); |
46 ASSERT(span); | 46 ASSERT(span); |
47 LayoutObject* obj = span->layoutObject(); | 47 LayoutObject* obj = span->layoutObject(); |
48 ASSERT(obj && obj->isInline()); | 48 ASSERT(obj && obj->isInline()); |
49 LayoutInline& layoutInline = toLayoutInline(*obj); | 49 LayoutInline& layoutInline = toLayoutInline(*obj); |
50 checkIsClippingStackingContextAndContainer(layoutInline); | 50 checkIsClippingStackingContextAndContainer(layoutInline); |
51 } | 51 } |
52 | 52 |
53 } | 53 } // namespace blink |
OLD | NEW |