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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 , m_minimumColumnHeight(0) | 45 , m_minimumColumnHeight(0) |
46 , m_forcedBreaksCount(0) | 46 , m_forcedBreaksCount(0) |
47 , m_maximumDistanceBetweenForcedBreaks(0) | 47 , m_maximumDistanceBetweenForcedBreaks(0) |
48 , m_forcedBreakOffset(0) | 48 , m_forcedBreakOffset(0) |
49 { | 49 { |
50 } | 50 } |
51 | 51 |
52 RenderMultiColumnSet* RenderMultiColumnSet::createAnonymous(RenderFlowThread* fl
owThread) | 52 RenderMultiColumnSet* RenderMultiColumnSet::createAnonymous(RenderFlowThread* fl
owThread) |
53 { | 53 { |
54 Document* document = flowThread->document(); | 54 Document* document = flowThread->document(); |
55 RenderMultiColumnSet* renderer = new (document->renderArena()) RenderMultiCo
lumnSet(flowThread); | 55 RenderMultiColumnSet* renderer = new RenderMultiColumnSet(flowThread); |
56 renderer->setDocumentForAnonymous(document); | 56 renderer->setDocumentForAnonymous(document); |
57 return renderer; | 57 return renderer; |
58 } | 58 } |
59 | 59 |
60 LayoutUnit RenderMultiColumnSet::heightAdjustedForSetOffset(LayoutUnit height) c
onst | 60 LayoutUnit RenderMultiColumnSet::heightAdjustedForSetOffset(LayoutUnit height) c
onst |
61 { | 61 { |
62 RenderMultiColumnBlock* multicolBlock = toRenderMultiColumnBlock(parent()); | 62 RenderMultiColumnBlock* multicolBlock = toRenderMultiColumnBlock(parent()); |
63 LayoutUnit contentLogicalTop = logicalTop() - multicolBlock->borderBefore()
- multicolBlock->paddingBefore(); | 63 LayoutUnit contentLogicalTop = logicalTop() - multicolBlock->borderBefore()
- multicolBlock->paddingBefore(); |
64 | 64 |
65 height -= contentLogicalTop; | 65 height -= contentLogicalTop; |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 fragments.append(fragment); | 508 fragments.append(fragment); |
509 } | 509 } |
510 } | 510 } |
511 | 511 |
512 const char* RenderMultiColumnSet::renderName() const | 512 const char* RenderMultiColumnSet::renderName() const |
513 { | 513 { |
514 return "RenderMultiColumnSet"; | 514 return "RenderMultiColumnSet"; |
515 } | 515 } |
516 | 516 |
517 } | 517 } |
OLD | NEW |