| 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/LayoutMultiColumnFlowThread.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // Placeholder renderer for column-span:all elements. The column-span:all render
er itself is a | 12 // Placeholder renderer for column-span:all elements. The column-span:all render
er 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 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutMultiColumnSpannerPlaceholder || LayoutBox::isOfType(type); } | 18 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutMultiColumnSpannerPlaceholder || LayoutBox::isOfType(type); } |
| 19 | 19 |
| 20 static LayoutMultiColumnSpannerPlaceholder* createAnonymous(const LayoutStyl
e& parentStyle, LayoutBox&); | 20 static LayoutMultiColumnSpannerPlaceholder* createAnonymous(const ComputedSt
yle& parentStyle, LayoutBox&); |
| 21 | 21 |
| 22 LayoutFlowThread* flowThread() const { return toLayoutBlockFlow(parent())->m
ultiColumnFlowThread(); } | 22 LayoutFlowThread* flowThread() const { return toLayoutBlockFlow(parent())->m
ultiColumnFlowThread(); } |
| 23 | 23 |
| 24 LayoutBox* rendererInFlowThread() const { return m_rendererInFlowThread; } | 24 LayoutBox* rendererInFlowThread() const { return m_rendererInFlowThread; } |
| 25 void updateMarginProperties(); | 25 void updateMarginProperties(); |
| 26 | 26 |
| 27 virtual const char* name() const override { return "LayoutMultiColumnSpanner
Placeholder"; } | 27 virtual const char* name() const override { return "LayoutMultiColumnSpanner
Placeholder"; } |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 virtual void willBeRemovedFromTree() override; | 30 virtual void willBeRemovedFromTree() override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 LayoutMultiColumnSpannerPlaceholder(LayoutBox*); | 41 LayoutMultiColumnSpannerPlaceholder(LayoutBox*); |
| 42 | 42 |
| 43 LayoutBox* m_rendererInFlowThread; // The actual column-span:all renderer in
side the flow thread. | 43 LayoutBox* m_rendererInFlowThread; // The actual column-span:all renderer in
side the flow thread. |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul
tiColumnSpannerPlaceholder()); | 46 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul
tiColumnSpannerPlaceholder()); |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif | 50 #endif |
| OLD | NEW |