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

Side by Side Diff: Source/core/rendering/RenderMultiColumnFlowThread.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 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 , m_progressionIsInline(true) 40 , m_progressionIsInline(true)
41 , m_isBeingEvacuated(false) 41 , m_isBeingEvacuated(false)
42 { 42 {
43 setFlowThreadState(InsideInFlowThread); 43 setFlowThreadState(InsideInFlowThread);
44 } 44 }
45 45
46 RenderMultiColumnFlowThread::~RenderMultiColumnFlowThread() 46 RenderMultiColumnFlowThread::~RenderMultiColumnFlowThread()
47 { 47 {
48 } 48 }
49 49
50 RenderMultiColumnFlowThread* RenderMultiColumnFlowThread::createAnonymous(Docume nt& document, RenderStyle* parentStyle) 50 RenderMultiColumnFlowThread* RenderMultiColumnFlowThread::createAnonymous(Docume nt& document, const RenderStyle* parentStyle)
51 { 51 {
52 RenderMultiColumnFlowThread* renderer = new RenderMultiColumnFlowThread(); 52 RenderMultiColumnFlowThread* renderer = new RenderMultiColumnFlowThread();
53 renderer->setDocumentForAnonymous(&document); 53 renderer->setDocumentForAnonymous(&document);
54 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK)); 54 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK));
55 return renderer; 55 return renderer;
56 } 56 }
57 57
58 RenderMultiColumnSet* RenderMultiColumnFlowThread::firstMultiColumnSet() const 58 RenderMultiColumnSet* RenderMultiColumnFlowThread::firstMultiColumnSet() const
59 { 59 {
60 for (RenderObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) { 60 for (RenderObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) {
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 } 668 }
669 669
670 bool RenderMultiColumnFlowThread::isPageLogicalHeightKnown() const 670 bool RenderMultiColumnFlowThread::isPageLogicalHeightKnown() const
671 { 671 {
672 if (RenderMultiColumnSet* columnSet = lastMultiColumnSet()) 672 if (RenderMultiColumnSet* columnSet = lastMultiColumnSet())
673 return columnSet->pageLogicalHeight(); 673 return columnSet->pageLogicalHeight();
674 return false; 674 return false;
675 } 675 }
676 676
677 } 677 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698