| 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/RenderPagedFlowThread.h" | 6 #include "core/rendering/RenderPagedFlowThread.h" |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 RenderPagedFlowThread* RenderPagedFlowThread::createAnonymous(Document& document
, RenderStyle* parentStyle) | 10 RenderPagedFlowThread* RenderPagedFlowThread::createAnonymous(Document& document
, const RenderStyle* parentStyle) |
| 11 { | 11 { |
| 12 RenderPagedFlowThread* renderer = new RenderPagedFlowThread(); | 12 RenderPagedFlowThread* renderer = new RenderPagedFlowThread(); |
| 13 renderer->setDocumentForAnonymous(&document); | 13 renderer->setDocumentForAnonymous(&document); |
| 14 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle,
BLOCK)); | 14 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle,
BLOCK)); |
| 15 return renderer; | 15 return renderer; |
| 16 } | 16 } |
| 17 | 17 |
| 18 const char* RenderPagedFlowThread::renderName() const | 18 const char* RenderPagedFlowThread::renderName() const |
| 19 { | 19 { |
| 20 return "RenderPagedFlowThread"; | 20 return "RenderPagedFlowThread"; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 RenderFlowThread::updateLogicalWidth(); | 33 RenderFlowThread::updateLogicalWidth(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void RenderPagedFlowThread::layout() | 36 void RenderPagedFlowThread::layout() |
| 37 { | 37 { |
| 38 setProgressionIsInline(pagedBlockFlow()->style()->hasInlinePaginationAxis())
; | 38 setProgressionIsInline(pagedBlockFlow()->style()->hasInlinePaginationAxis())
; |
| 39 RenderMultiColumnFlowThread::layout(); | 39 RenderMultiColumnFlowThread::layout(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| OLD | NEW |