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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 LayoutUnit tallestUnbreakableLogicalHeight(LayoutUnit offsetInFlowThread) co nst; 185 LayoutUnit tallestUnbreakableLogicalHeight(LayoutUnit offsetInFlowThread) co nst;
186 186
187 LayoutSize columnOffset(const LayoutPoint&) const final; 187 LayoutSize columnOffset(const LayoutPoint&) const final;
188 188
189 // Do we need to set a new width and lay out? 189 // Do we need to set a new width and lay out?
190 virtual bool needsNewWidth() const; 190 virtual bool needsNewWidth() const;
191 191
192 bool isPageLogicalHeightKnown() const final; 192 bool isPageLogicalHeightKnown() const final;
193 193
194 LayoutSize flowThreadTranslationAtOffset(LayoutUnit, CoordinateSpaceConversi on) 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) const final;
203 203
204 void layoutColumns(SubtreeLayoutScope&); 204 void layoutColumns(SubtreeLayoutScope&);
(...skipping 78 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