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 "config.h" | 5 #include "config.h" |
6 #include "core/rendering/RenderMultiColumnSpannerSet.h" | 6 #include "core/rendering/RenderMultiColumnSpannerSet.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 RenderMultiColumnSpannerSet* RenderMultiColumnSpannerSet::createAnonymous(Render
MultiColumnFlowThread* flowThread, RenderStyle* parentStyle, RenderBox* renderer
InFlowThread) | 10 RenderMultiColumnSpannerSet* RenderMultiColumnSpannerSet::createAnonymous(Render
MultiColumnFlowThread* flowThread, RenderStyle* parentStyle, RenderBox* renderer
InFlowThread) |
(...skipping 10 matching lines...) Expand all Loading... |
21 : RenderMultiColumnSet(flowThread) | 21 : RenderMultiColumnSet(flowThread) |
22 , m_rendererInFlowThread(rendererInFlowThread) | 22 , m_rendererInFlowThread(rendererInFlowThread) |
23 { | 23 { |
24 } | 24 } |
25 | 25 |
26 bool RenderMultiColumnSpannerSet::recalculateColumnHeight(BalancedHeightCalculat
ion calculationMode) | 26 bool RenderMultiColumnSpannerSet::recalculateColumnHeight(BalancedHeightCalculat
ion calculationMode) |
27 { | 27 { |
28 return false; | 28 return false; |
29 } | 29 } |
30 | 30 |
| 31 void RenderMultiColumnSpannerSet::computeLogicalHeight(LayoutUnit, LayoutUnit lo
gicalTop, LogicalExtentComputedValues& computedValues) const |
| 32 { |
| 33 computedValues.m_extent = m_rendererInFlowThread->logicalHeight(); |
| 34 computedValues.m_position = logicalTop; |
| 35 } |
| 36 |
| 37 LayoutUnit RenderMultiColumnSpannerSet::pageLogicalHeight() const |
| 38 { |
| 39 ASSERT(!m_rendererInFlowThread->needsLayout()); |
| 40 return m_rendererInFlowThread->logicalHeight(); |
| 41 } |
| 42 |
31 const char* RenderMultiColumnSpannerSet::renderName() const | 43 const char* RenderMultiColumnSpannerSet::renderName() const |
32 { | 44 { |
33 return "RenderMultiColumnSpannerSet"; | 45 return "RenderMultiColumnSpannerSet"; |
34 } | 46 } |
35 | 47 |
36 } | 48 } |
OLD | NEW |