Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: Source/core/rendering/RenderMultiColumnFlowThread.h

Issue 883293004: [New Multicolumn] Preparatory work for nested multicol support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Place the new files in ../layout/ , since that's where they'll end up soon anyway. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 #ifndef RenderMultiColumnFlowThread_h 27 #ifndef RenderMultiColumnFlowThread_h
28 #define RenderMultiColumnFlowThread_h 28 #define RenderMultiColumnFlowThread_h
29 29
30 #include "core/rendering/RenderFlowThread.h" 30 #include "core/rendering/RenderFlowThread.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class RenderMultiColumnSet; 34 class RenderMultiColumnSet;
35 class RenderMultiColumnSpannerPlaceholder; 35 class RenderMultiColumnSpannerPlaceholder;
36 36
37 enum BalancedColumnHeightCalculation { GuessFromFlowThreadPortion, StretchBySpac eShortage };
38
37 // Flow thread implementation for CSS multicol. This will be inserted as an anon ymous child block of 39 // Flow thread implementation for CSS multicol. This will be inserted as an anon ymous child block of
38 // the actual multicol container (i.e. the RenderBlockFlow whose style computes to non-auto 40 // the actual multicol container (i.e. the RenderBlockFlow whose style computes to non-auto
39 // column-count and/or column-width). RenderMultiColumnFlowThread is the heart o f the multicol 41 // column-count and/or column-width). RenderMultiColumnFlowThread is the heart o f the multicol
40 // implementation, and there is only one instance per multicol container. Child content of the 42 // implementation, and there is only one instance per multicol container. Child content of the
41 // multicol container is parented into the flow thread at the time of renderer i nsertion. 43 // multicol container is parented into the flow thread at the time of renderer i nsertion.
42 // 44 //
43 // Apart from this flow thread child, the multicol container will also have Rend erMultiColumnSet 45 // Apart from this flow thread child, the multicol container will also have Rend erMultiColumnSet
44 // "region" children, which are used to position the columns visually. The flow thread is in charge 46 // "region" children, which are used to position the columns visually. The flow thread is in charge
45 // of layout, and, after having calculated the column width, it lays out content as if everything 47 // of layout, and, after having calculated the column width, it lays out content as if everything
46 // were in one tall single column, except that there will typically be some amou nt of blank space 48 // were in one tall single column, except that there will typically be some amou nt of blank space
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or 0 if auto. 210 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or 0 if auto.
209 bool m_inBalancingPass; // Set when relayouting for column balancing. 211 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. 212 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. 213 bool m_progressionIsInline; // Always true for regular multicol. False for p aged-y overflow.
212 bool m_isBeingEvacuated; 214 bool m_isBeingEvacuated;
213 }; 215 };
214 216
215 } // namespace blink 217 } // namespace blink
216 218
217 #endif // RenderMultiColumnFlowThread_h 219 #endif // RenderMultiColumnFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698