OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/rendering/RenderMultiColumnSpannerSet.h" |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 RenderMultiColumnSpannerSet* RenderMultiColumnSpannerSet::createAnonymous(Render
MultiColumnFlowThread* flowThread, RenderStyle* parentStyle, RenderBox* renderer
InFlowThread) |
| 11 { |
| 12 RenderMultiColumnSpannerSet* newSpanner = new RenderMultiColumnSpannerSet(fl
owThread, rendererInFlowThread); |
| 13 Document& document = flowThread->document(); |
| 14 newSpanner->setDocumentForAnonymous(&document); |
| 15 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parentStyle, BLOCK); |
| 16 newSpanner->setStyle(newStyle); |
| 17 return newSpanner; |
| 18 } |
| 19 |
| 20 RenderMultiColumnSpannerSet::RenderMultiColumnSpannerSet(RenderMultiColumnFlowTh
read* flowThread, RenderBox* rendererInFlowThread) |
| 21 : RenderMultiColumnSet(flowThread) |
| 22 , m_rendererInFlowThread(rendererInFlowThread) |
| 23 { |
| 24 } |
| 25 |
| 26 bool RenderMultiColumnSpannerSet::recalculateColumnHeight(BalancedHeightCalculat
ion calculationMode) |
| 27 { |
| 28 return false; |
| 29 } |
| 30 |
| 31 const char* RenderMultiColumnSpannerSet::renderName() const |
| 32 { |
| 33 return "RenderMultiColumnSpannerSet"; |
| 34 } |
| 35 |
| 36 } |
OLD | NEW |