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

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

Issue 1024023002: [New Multicolumn] mapAbsoluteToLocalPoint() needs to convert to flow thread coordinates. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review - remove more cruft. Created 5 years, 9 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 | Annotate | Revision Log
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 unsigned columnCount() const { return m_columnCount; } 160 unsigned columnCount() const { return m_columnCount; }
161 LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; } 161 LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; }
162 void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailabl e = available; } 162 void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailabl e = available; }
163 bool progressionIsInline() const { return m_progressionIsInline; } 163 bool progressionIsInline() const { return m_progressionIsInline; }
164 164
165 virtual LayoutSize columnOffset(const LayoutPoint&) const override final; 165 virtual LayoutSize columnOffset(const LayoutPoint&) const override final;
166 166
167 // Do we need to set a new width and lay out? 167 // Do we need to set a new width and lay out?
168 virtual bool needsNewWidth() const; 168 virtual bool needsNewWidth() const;
169 169
170 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo int) const override;
171
170 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const overr ide final; 172 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const overr ide final;
171 173
172 void layoutColumns(bool relayoutChildren, SubtreeLayoutScope&); 174 void layoutColumns(bool relayoutChildren, SubtreeLayoutScope&);
173 175
174 bool recalculateColumnHeights(); 176 bool recalculateColumnHeights();
175 177
176 void columnRuleStyleDidChange(); 178 void columnRuleStyleDidChange();
177 179
178 virtual const char* name() const override { return "LayoutMultiColumnFlowThr ead"; } 180 virtual const char* name() const override { return "LayoutMultiColumnFlowThr ead"; }
179 181
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or 0 if auto. 213 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or 0 if auto.
212 bool m_inBalancingPass; // Set when relayouting for column balancing. 214 bool m_inBalancingPass; // Set when relayouting for column balancing.
213 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t he column set heights after layout. 215 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t he column set heights after layout.
214 bool m_progressionIsInline; // Always true for regular multicol. False for p aged-y overflow. 216 bool m_progressionIsInline; // Always true for regular multicol. False for p aged-y overflow.
215 bool m_isBeingEvacuated; 217 bool m_isBeingEvacuated;
216 }; 218 };
217 219
218 } // namespace blink 220 } // namespace blink
219 221
220 #endif // LayoutMultiColumnFlowThread_h 222 #endif // LayoutMultiColumnFlowThread_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFlowThread.h ('k') | Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698