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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 virtual bool isPageLogicalHeightKnown() const { return true; } | 117 virtual bool isPageLogicalHeightKnown() const { return true; } |
118 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } | 118 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } |
119 | 119 |
120 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun
dingBox, const LayoutRect& dirtyRectInFlowThread); | 120 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun
dingBox, const LayoutRect& dirtyRectInFlowThread); |
121 | 121 |
122 // Return the visual bounding box based on the supplied flow-thread bounding
box. Both | 122 // Return the visual bounding box based on the supplied flow-thread bounding
box. Both |
123 // rectangles are completely physical in terms of writing mode. | 123 // rectangles are completely physical in terms of writing mode. |
124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; | 124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; |
125 | 125 |
| 126 // Convert a logical position in the flow thread coordinate space to a logic
al position in the |
| 127 // containing coordinate space. |
| 128 void flowThreadToContainingCoordinateSpace(LayoutUnit& blockPosition, Layout
Unit& inlinePosition) const; |
| 129 |
126 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; | 130 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; |
127 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; | 131 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; |
128 | 132 |
129 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 133 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
130 | 134 |
131 virtual const char* name() const = 0; | 135 virtual const char* name() const = 0; |
132 | 136 |
133 protected: | 137 protected: |
134 void generateColumnSetIntervalTree(); | 138 void generateColumnSetIntervalTree(); |
135 | 139 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // These structures are used by PODIntervalTree for debugging. | 172 // These structures are used by PODIntervalTree for debugging. |
169 #ifndef NDEBUG | 173 #ifndef NDEBUG |
170 template <> struct ValueToString<LayoutMultiColumnSet*> { | 174 template <> struct ValueToString<LayoutMultiColumnSet*> { |
171 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } | 175 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } |
172 }; | 176 }; |
173 #endif | 177 #endif |
174 | 178 |
175 } // namespace blink | 179 } // namespace blink |
176 | 180 |
177 #endif // LayoutFlowThread_h | 181 #endif // LayoutFlowThread_h |
OLD | NEW |