Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: Source/core/rendering/RenderPagedFlowThread.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698