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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.h

Issue 1429903003: Always lay out the flow thread when the multicol container is laid out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual bool needsNewWidth() const; 168 virtual bool needsNewWidth() const;
169 169
170 bool isPageLogicalHeightKnown() const final; 170 bool isPageLogicalHeightKnown() const final;
171 171
172 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; 172 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const;
173 173
174 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st override; 174 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st override;
175 175
176 LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const final; 176 LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const final;
177 177
178 void layoutColumns(bool relayoutChildren, SubtreeLayoutScope&); 178 void layoutColumns(SubtreeLayoutScope&);
179 179
180 bool isInInitialLayoutPass() const { return !m_inBalancingPass; } 180 bool isInInitialLayoutPass() const { return !m_inBalancingPass; }
181 181
182 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the 182 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the
183 // flow thread, since the flow thread is not in a spanner's containing block chain (since the 183 // flow thread, since the flow thread is not in a spanner's containing block chain (since the
184 // containing block is the multicol container). 184 // containing block is the multicol container).
185 void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread); 185 void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread);
186 186
187 bool recalculateColumnHeights(); 187 bool recalculateColumnHeights();
188 188
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 bool m_isBeingEvacuated; 247 bool m_isBeingEvacuated;
248 }; 248 };
249 249
250 // Cannot use DEFINE_LAYOUT_OBJECT_TYPE_CASTS here, because isMultiColumnFlowThr ead() is defined in 250 // Cannot use DEFINE_LAYOUT_OBJECT_TYPE_CASTS here, because isMultiColumnFlowThr ead() is defined in
251 // LayoutFlowThread, not in LayoutObject. 251 // LayoutFlowThread, not in LayoutObject.
252 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, LayoutFlowThread, object, object- >isLayoutMultiColumnFlowThread(), object.isLayoutMultiColumnFlowThread()); 252 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, LayoutFlowThread, object, object- >isLayoutMultiColumnFlowThread(), object.isLayoutMultiColumnFlowThread());
253 253
254 } // namespace blink 254 } // namespace blink
255 255
256 #endif // LayoutMultiColumnFlowThread_h 256 #endif // LayoutMultiColumnFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698