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

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

Issue 2340213003: Add PageBoundaryRule parameter to columnSetAtBlockOffset(). (Closed)
Patch Set: 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool isPageLogicalHeightKnown() const final; 192 bool isPageLogicalHeightKnown() const final;
193 193
194 LayoutSize flowThreadTranslationAtOffset(LayoutUnit, PageBoundaryRule, Coord inateSpaceConversion) const; 194 LayoutSize flowThreadTranslationAtOffset(LayoutUnit, PageBoundaryRule, Coord inateSpaceConversion) const;
195 LayoutSize flowThreadTranslationAtPoint(const LayoutPoint& flowThreadPoint, CoordinateSpaceConversion) const; 195 LayoutSize flowThreadTranslationAtPoint(const LayoutPoint& flowThreadPoint, CoordinateSpaceConversion) const;
196 196
197 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const override; 197 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const override;
198 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st override; 198 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st override;
199 199
200 int inlineBlockBaseline(LineDirectionMode) const override; 200 int inlineBlockBaseline(LineDirectionMode) const override;
201 201
202 LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const final; 202 LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit, PageBoundaryRule) c onst final;
203 203
204 void layoutColumns(SubtreeLayoutScope&); 204 void layoutColumns(SubtreeLayoutScope&);
205 205
206 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the 206 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the
207 // flow thread, since the flow thread is not in a spanner's containing block chain (since the 207 // flow thread, since the flow thread is not in a spanner's containing block chain (since the
208 // containing block is the multicol container). 208 // containing block is the multicol container).
209 void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread); 209 void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread);
210 210
211 // Returns true if at least one column got a new height after flow thread la yout (during column 211 // Returns true if at least one column got a new height after flow thread la yout (during column
212 // set layout), in which case we need another layout pass. Column heights ma y change after flow 212 // set layout), in which case we need another layout pass. Column heights ma y change after flow
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 bool m_isBeingEvacuated; 283 bool m_isBeingEvacuated;
284 }; 284 };
285 285
286 // Cannot use DEFINE_LAYOUT_OBJECT_TYPE_CASTS here, because isMultiColumnFlowThr ead() is defined in 286 // Cannot use DEFINE_LAYOUT_OBJECT_TYPE_CASTS here, because isMultiColumnFlowThr ead() is defined in
287 // LayoutFlowThread, not in LayoutObject. 287 // LayoutFlowThread, not in LayoutObject.
288 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, LayoutFlowThread, object, object- >isLayoutMultiColumnFlowThread(), object.isLayoutMultiColumnFlowThread()); 288 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, LayoutFlowThread, object, object- >isLayoutMultiColumnFlowThread(), object.isLayoutMultiColumnFlowThread());
289 289
290 } // namespace blink 290 } // namespace blink
291 291
292 #endif // LayoutMultiColumnFlowThread_h 292 #endif // LayoutMultiColumnFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698