OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |