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

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

Issue 2339973002: Handle exclusive end offsets when translating from flow thread coordinates. (Closed)
Patch Set: Documentation Created 4 years, 3 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 LayoutRect flowThreadPortionOverflowRect() const; 117 LayoutRect flowThreadPortionOverflowRect() const;
118 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort ionRect, bool isFirstPortion, bool isLastPortion) const; 118 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort ionRect, bool isFirstPortion, bool isLastPortion) const;
119 119
120 // The used CSS value of column-count, i.e. how many columns there are room for without overflowing. 120 // The used CSS value of column-count, i.e. how many columns there are room for without overflowing.
121 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou nt(); } 121 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou nt(); }
122 122
123 bool heightIsAuto() const; 123 bool heightIsAuto() const;
124 124
125 // Find the column that contains the given block offset, and return the tran slation needed to 125 // Find the column that contains the given block offset, and return the tran slation needed to
126 // get from flow thread coordinates to visual coordinates. 126 // get from flow thread coordinates to visual coordinates.
127 LayoutSize flowThreadTranslationAtOffset(LayoutUnit, CoordinateSpaceConversi on) const; 127 LayoutSize flowThreadTranslationAtOffset(LayoutUnit, PageBoundaryRule, Coord inateSpaceConversion) const;
128 128
129 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st; 129 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st;
130 130
131 // (Re-)calculate the column height if it's auto. This is first and foremost needed by sets that 131 // (Re-)calculate the column height if it's auto. This is first and foremost needed by sets that
132 // are to balance the column height, but even when it isn't to be balanced, this is necessary if 132 // are to balance the column height, but even when it isn't to be balanced, this is necessary if
133 // the multicol container's height is constrained. 133 // the multicol container's height is constrained.
134 bool recalculateColumnHeight(); 134 bool recalculateColumnHeight();
135 135
136 // Reset previously calculated column height. Will mark for layout if needed . 136 // Reset previously calculated column height. Will mark for layout if needed .
137 void resetColumnHeight(); 137 void resetColumnHeight();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 bool m_initialHeightCalculated; 208 bool m_initialHeightCalculated;
209 }; 209 };
210 210
211 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); 211 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet());
212 212
213 } // namespace blink 213 } // namespace blink
214 214
215 #endif // LayoutMultiColumnSet_h 215 #endif // LayoutMultiColumnSet_h
216 216
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698