| 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 #ifndef LayoutMultiColumnSpannerPlaceholder_h | 5 #ifndef LayoutMultiColumnSpannerPlaceholder_h |
| 6 #define LayoutMultiColumnSpannerPlaceholder_h | 6 #define LayoutMultiColumnSpannerPlaceholder_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutMultiColumnFlowThread.h" | 8 #include "core/layout/LayoutBlockFlow.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // Placeholder layoutObject for column-span:all elements. The column-span:all la
youtObject itself is a | 12 // Placeholder layoutObject for column-span:all elements. The column-span:all la
youtObject itself is a |
| 13 // descendant of the flow thread, but due to its out-of-flow nature, we need som
ething on the | 13 // descendant of the flow thread, but due to its out-of-flow nature, we need som
ething on the |
| 14 // outside to take care of its positioning and sizing. LayoutMultiColumnSpannerP
laceholder objects | 14 // outside to take care of its positioning and sizing. LayoutMultiColumnSpannerP
laceholder objects |
| 15 // are siblings of LayoutMultiColumnSet objects, i.e. direct children of the mul
ticol container. | 15 // are siblings of LayoutMultiColumnSet objects, i.e. direct children of the mul
ticol container. |
| 16 class LayoutMultiColumnSpannerPlaceholder final : public LayoutBox { | 16 class LayoutMultiColumnSpannerPlaceholder final : public LayoutBox { |
| 17 public: | 17 public: |
| 18 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutMultiColumnSpannerPlaceholder || LayoutBox::isOfType(type); } | 18 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutMultiColumnSpannerPlaceholder || LayoutBox::isOfType(type); } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 LayoutMultiColumnSpannerPlaceholder(LayoutBox*); | 52 LayoutMultiColumnSpannerPlaceholder(LayoutBox*); |
| 53 | 53 |
| 54 LayoutBox* m_layoutObjectInFlowThread; // The actual column-span:all layoutO
bject inside the flow thread. | 54 LayoutBox* m_layoutObjectInFlowThread; // The actual column-span:all layoutO
bject inside the flow thread. |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul
tiColumnSpannerPlaceholder()); | 57 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul
tiColumnSpannerPlaceholder()); |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif | 61 #endif |
| OLD | NEW |