OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // rectangles are completely physical in terms of writing mode. | 120 // rectangles are completely physical in terms of writing mode. |
121 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; | 121 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; |
122 | 122 |
123 // Convert a logical position in the flow thread coordinate space to a logic
al position in the | 123 // Convert a logical position in the flow thread coordinate space to a logic
al position in the |
124 // containing coordinate space. | 124 // containing coordinate space. |
125 void flowThreadToContainingCoordinateSpace(LayoutUnit& blockPosition, Layout
Unit& inlinePosition) const; | 125 void flowThreadToContainingCoordinateSpace(LayoutUnit& blockPosition, Layout
Unit& inlinePosition) const; |
126 | 126 |
127 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; | 127 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; |
128 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; | 128 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; |
129 | 129 |
130 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 130 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit, PageBoundar
yRule) const = 0; |
131 | 131 |
132 virtual const char* name() const = 0; | 132 virtual const char* name() const = 0; |
133 | 133 |
134 protected: | 134 protected: |
135 void generateColumnSetIntervalTree(); | 135 void generateColumnSetIntervalTree(); |
136 | 136 |
137 LayoutMultiColumnSetList m_multiColumnSetList; | 137 LayoutMultiColumnSetList m_multiColumnSetList; |
138 | 138 |
139 typedef PODInterval<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInterva
l; | 139 typedef PODInterval<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInterva
l; |
140 typedef PODIntervalTree<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInt
ervalTree; | 140 typedef PODIntervalTree<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInt
ervalTree; |
(...skipping 28 matching lines...) Expand all Loading... |
169 // These structures are used by PODIntervalTree for debugging. | 169 // These structures are used by PODIntervalTree for debugging. |
170 #ifndef NDEBUG | 170 #ifndef NDEBUG |
171 template <> struct ValueToString<LayoutMultiColumnSet*> { | 171 template <> struct ValueToString<LayoutMultiColumnSet*> { |
172 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } | 172 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } |
173 }; | 173 }; |
174 #endif | 174 #endif |
175 | 175 |
176 } // namespace blink | 176 } // namespace blink |
177 | 177 |
178 #endif // LayoutFlowThread_h | 178 #endif // LayoutFlowThread_h |
OLD | NEW |