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 visua
l logical position. |
| 127 void flowThreadToVisualLogicalPosition(LayoutUnit& blockPosition, LayoutUnit
& inlinePosition); |
| 128 |
126 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; | 129 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre
adPoint) const = 0; |
127 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; | 130 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; |
128 | 131 |
129 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 132 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
130 | 133 |
131 virtual const char* name() const = 0; | 134 virtual const char* name() const = 0; |
132 | 135 |
133 protected: | 136 protected: |
134 void generateColumnSetIntervalTree(); | 137 void generateColumnSetIntervalTree(); |
135 | 138 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // These structures are used by PODIntervalTree for debugging. | 171 // These structures are used by PODIntervalTree for debugging. |
169 #ifndef NDEBUG | 172 #ifndef NDEBUG |
170 template <> struct ValueToString<LayoutMultiColumnSet*> { | 173 template <> struct ValueToString<LayoutMultiColumnSet*> { |
171 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } | 174 static String toString(const LayoutMultiColumnSet* value) { return String::f
ormat("%p", value); } |
172 }; | 175 }; |
173 #endif | 176 #endif |
174 | 177 |
175 } // namespace blink | 178 } // namespace blink |
176 | 179 |
177 #endif // LayoutFlowThread_h | 180 #endif // LayoutFlowThread_h |
OLD | NEW |