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 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/rendering/RenderMultiColumnSet.h" | 27 #include "core/rendering/RenderMultiColumnSet.h" |
28 | 28 |
29 #include "core/rendering/PaintInfo.h" | 29 #include "core/rendering/PaintInfo.h" |
30 #include "core/rendering/RenderLayer.h" | 30 #include "core/rendering/RenderLayer.h" |
31 #include "core/rendering/RenderMultiColumnFlowThread.h" | 31 #include "core/rendering/RenderMultiColumnFlowThread.h" |
32 | 32 |
33 using namespace std; | |
34 | |
35 namespace WebCore { | 33 namespace WebCore { |
36 | 34 |
37 RenderMultiColumnSet::RenderMultiColumnSet(RenderFlowThread* flowThread) | 35 RenderMultiColumnSet::RenderMultiColumnSet(RenderFlowThread* flowThread) |
38 : RenderRegion(0, flowThread) | 36 : RenderRegion(0, flowThread) |
39 , m_columnHeight(0) | 37 , m_columnHeight(0) |
40 , m_maxColumnHeight(RenderFlowThread::maxLogicalHeight()) | 38 , m_maxColumnHeight(RenderFlowThread::maxLogicalHeight()) |
41 , m_minSpaceShortage(RenderFlowThread::maxLogicalHeight()) | 39 , m_minSpaceShortage(RenderFlowThread::maxLogicalHeight()) |
42 , m_minimumColumnHeight(0) | 40 , m_minimumColumnHeight(0) |
43 { | 41 { |
44 } | 42 } |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 if (!hasOverflowClip()) | 627 if (!hasOverflowClip()) |
630 addVisualOverflow(lastRect); | 628 addVisualOverflow(lastRect); |
631 } | 629 } |
632 | 630 |
633 const char* RenderMultiColumnSet::renderName() const | 631 const char* RenderMultiColumnSet::renderName() const |
634 { | 632 { |
635 return "RenderMultiColumnSet"; | 633 return "RenderMultiColumnSet"; |
636 } | 634 } |
637 | 635 |
638 } | 636 } |
OLD | NEW |