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 RenderMultiColumnSpannerSet_h | 5 #ifndef RenderMultiColumnSpannerSet_h |
6 #define RenderMultiColumnSpannerSet_h | 6 #define RenderMultiColumnSpannerSet_h |
7 | 7 |
8 #include "core/rendering/RenderMultiColumnSet.h" | 8 #include "core/rendering/RenderMultiColumnSet.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 class RenderMultiColumnSpannerSet final : public RenderMultiColumnSet { | 21 class RenderMultiColumnSpannerSet final : public RenderMultiColumnSet { |
22 public: | 22 public: |
23 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderMultiColumnSpannerSet || RenderMultiColumnSet::isOfType(type)
; } | 23 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderMultiColumnSpannerSet || RenderMultiColumnSet::isOfType(type)
; } |
24 | 24 |
25 static RenderMultiColumnSpannerSet* createAnonymous(RenderMultiColumnFlowThr
ead*, RenderStyle* parentStyle, RenderBox*); | 25 static RenderMultiColumnSpannerSet* createAnonymous(RenderMultiColumnFlowThr
ead*, RenderStyle* parentStyle, RenderBox*); |
26 | 26 |
27 RenderBox* rendererInFlowThread() const { return m_rendererInFlowThread; } | 27 RenderBox* rendererInFlowThread() const { return m_rendererInFlowThread; } |
28 | 28 |
29 protected: | 29 protected: |
30 virtual bool recalculateColumnHeight(BalancedHeightCalculation) override; | 30 virtual bool recalculateColumnHeight(BalancedHeightCalculation) override; |
| 31 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; |
| 32 virtual LayoutUnit pageLogicalHeight() const override; |
31 virtual const char* renderName() const override; | 33 virtual const char* renderName() const override; |
32 | 34 |
33 private: | 35 private: |
34 RenderMultiColumnSpannerSet(RenderMultiColumnFlowThread*, RenderBox*); | 36 RenderMultiColumnSpannerSet(RenderMultiColumnFlowThread*, RenderBox*); |
35 | 37 |
36 RenderBox* m_rendererInFlowThread; // The actual column-span:all renderer in
side the flow thread. | 38 RenderBox* m_rendererInFlowThread; // The actual column-span:all renderer in
side the flow thread. |
37 }; | 39 }; |
38 | 40 |
39 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSpannerSet, isRenderMultiColumn
SpannerSet()); | 41 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSpannerSet, isRenderMultiColumn
SpannerSet()); |
40 | 42 |
41 } // namespace blink | 43 } // namespace blink |
42 | 44 |
43 #endif | 45 #endif |
OLD | NEW |