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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 { | 44 { |
45 Document& document = flowThread->document(); | 45 Document& document = flowThread->document(); |
46 RenderMultiColumnSet* renderer = new RenderMultiColumnSet(flowThread); | 46 RenderMultiColumnSet* renderer = new RenderMultiColumnSet(flowThread); |
47 renderer->setDocumentForAnonymous(&document); | 47 renderer->setDocumentForAnonymous(&document); |
48 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle,
BLOCK)); | 48 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle,
BLOCK)); |
49 return renderer; | 49 return renderer; |
50 } | 50 } |
51 | 51 |
52 RenderMultiColumnSet* RenderMultiColumnSet::nextSiblingMultiColumnSet() const | 52 RenderMultiColumnSet* RenderMultiColumnSet::nextSiblingMultiColumnSet() const |
53 { | 53 { |
54 for (RenderObject* sibling = nextSibling(); sibling; sibling = sibling->next
Sibling()) { | 54 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next
Sibling()) { |
55 if (sibling->isRenderMultiColumnSet()) | 55 if (sibling->isRenderMultiColumnSet()) |
56 return toRenderMultiColumnSet(sibling); | 56 return toRenderMultiColumnSet(sibling); |
57 } | 57 } |
58 return 0; | 58 return 0; |
59 } | 59 } |
60 | 60 |
61 RenderMultiColumnSet* RenderMultiColumnSet::previousSiblingMultiColumnSet() cons
t | 61 RenderMultiColumnSet* RenderMultiColumnSet::previousSiblingMultiColumnSet() cons
t |
62 { | 62 { |
63 for (RenderObject* sibling = previousSibling(); sibling; sibling = sibling->
previousSibling()) { | 63 for (LayoutObject* sibling = previousSibling(); sibling; sibling = sibling->
previousSibling()) { |
64 if (sibling->isRenderMultiColumnSet()) | 64 if (sibling->isRenderMultiColumnSet()) |
65 return toRenderMultiColumnSet(sibling); | 65 return toRenderMultiColumnSet(sibling); |
66 } | 66 } |
67 return 0; | 67 return 0; |
68 } | 68 } |
69 | 69 |
70 void RenderMultiColumnSet::setLogicalTopInFlowThread(LayoutUnit logicalTop) | 70 void RenderMultiColumnSet::setLogicalTopInFlowThread(LayoutUnit logicalTop) |
71 { | 71 { |
72 LayoutRect rect = flowThreadPortionRect(); | 72 LayoutRect rect = flowThreadPortionRect(); |
73 if (isHorizontalWritingMode()) | 73 if (isHorizontalWritingMode()) |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 624 |
625 void RenderMultiColumnSet::detachRegion() | 625 void RenderMultiColumnSet::detachRegion() |
626 { | 626 { |
627 if (m_flowThread) { | 627 if (m_flowThread) { |
628 m_flowThread->removeRegionFromThread(this); | 628 m_flowThread->removeRegionFromThread(this); |
629 m_flowThread = 0; | 629 m_flowThread = 0; |
630 } | 630 } |
631 } | 631 } |
632 | 632 |
633 } | 633 } |
OLD | NEW |