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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Return the visual bounding box based on the supplied flow-thread bounding
box. Both | 105 // Return the visual bounding box based on the supplied flow-thread bounding
box. Both |
106 // rectangles are completely physical in terms of writing mode. | 106 // rectangles are completely physical in terms of writing mode. |
107 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; | 107 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; |
108 | 108 |
109 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint)
const | 109 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint)
const |
110 { | 110 { |
111 return flowThreadPoint + columnOffset(flowThreadPoint); | 111 return flowThreadPoint + columnOffset(flowThreadPoint); |
112 } | 112 } |
113 | 113 |
114 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; | |
115 | |
116 // Used to estimate the maximum height of the flow thread. | 114 // Used to estimate the maximum height of the flow thread. |
117 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } | 115 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } |
118 | 116 |
119 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 117 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
120 | 118 |
121 virtual const char* name() const = 0; | 119 virtual const char* name() const = 0; |
122 | 120 |
123 protected: | 121 protected: |
124 void generateColumnSetIntervalTree(); | 122 void generateColumnSetIntervalTree(); |
125 | 123 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 }; | 161 }; |
164 | 162 |
165 template <> struct ValueToString<LayoutMultiColumnSet*> { | 163 template <> struct ValueToString<LayoutMultiColumnSet*> { |
166 static String string(const LayoutMultiColumnSet* value) { return String::for
mat("%p", value); } | 164 static String string(const LayoutMultiColumnSet* value) { return String::for
mat("%p", value); } |
167 }; | 165 }; |
168 #endif | 166 #endif |
169 | 167 |
170 } // namespace blink | 168 } // namespace blink |
171 | 169 |
172 #endif // LayoutFlowThread_h | 170 #endif // LayoutFlowThread_h |
OLD | NEW |