| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // column heights changed in the previous pass, since column height changes may
affect break points | 109 // column heights changed in the previous pass, since column height changes may
affect break points |
| 110 // and pagination struts anywhere in the tree, and currently no way exists to do
this in a more | 110 // and pagination struts anywhere in the tree, and currently no way exists to do
this in a more |
| 111 // optimized manner. | 111 // optimized manner. |
| 112 // | 112 // |
| 113 // There's also some documentation online: | 113 // There's also some documentation online: |
| 114 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/multi
-column-layout | 114 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/multi
-column-layout |
| 115 class RenderMultiColumnFlowThread : public RenderFlowThread { | 115 class RenderMultiColumnFlowThread : public RenderFlowThread { |
| 116 public: | 116 public: |
| 117 virtual ~RenderMultiColumnFlowThread(); | 117 virtual ~RenderMultiColumnFlowThread(); |
| 118 | 118 |
| 119 static RenderMultiColumnFlowThread* createAnonymous(Document&, RenderStyle*
parentStyle); | 119 static RenderMultiColumnFlowThread* createAnonymous(Document&, const RenderS
tyle* parentStyle); |
| 120 | 120 |
| 121 virtual bool isRenderMultiColumnFlowThread() const override final { return t
rue; } | 121 virtual bool isRenderMultiColumnFlowThread() const override final { return t
rue; } |
| 122 | 122 |
| 123 RenderBlockFlow* multiColumnBlockFlow() const { return toRenderBlockFlow(par
ent()); } | 123 RenderBlockFlow* multiColumnBlockFlow() const { return toRenderBlockFlow(par
ent()); } |
| 124 | 124 |
| 125 RenderMultiColumnSet* firstMultiColumnSet() const; | 125 RenderMultiColumnSet* firstMultiColumnSet() const; |
| 126 RenderMultiColumnSet* lastMultiColumnSet() const; | 126 RenderMultiColumnSet* lastMultiColumnSet() const; |
| 127 | 127 |
| 128 // Return the first column set or spanner placeholder. | 128 // Return the first column set or spanner placeholder. |
| 129 RenderBox* firstMultiColumnBox() const | 129 RenderBox* firstMultiColumnBox() const |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. | 208 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. |
| 209 bool m_inBalancingPass; // Set when relayouting for column balancing. | 209 bool m_inBalancingPass; // Set when relayouting for column balancing. |
| 210 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. | 210 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. |
| 211 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. | 211 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. |
| 212 bool m_isBeingEvacuated; | 212 bool m_isBeingEvacuated; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif // RenderMultiColumnFlowThread_h | 217 #endif // RenderMultiColumnFlowThread_h |
| OLD | NEW |