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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 114 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const = 0; |
115 | 115 |
116 // Used to estimate the maximum height of the flow thread. | |
117 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } | |
118 | |
119 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 116 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
120 | 117 |
121 virtual const char* name() const = 0; | 118 virtual const char* name() const = 0; |
122 | 119 |
123 protected: | 120 protected: |
124 void generateColumnSetIntervalTree(); | 121 void generateColumnSetIntervalTree(); |
125 | 122 |
126 LayoutMultiColumnSetList m_multiColumnSetList; | 123 LayoutMultiColumnSetList m_multiColumnSetList; |
127 | 124 |
128 typedef PODInterval<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInterva
l; | 125 typedef PODInterval<LayoutUnit, LayoutMultiColumnSet*> MultiColumnSetInterva
l; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 }; | 160 }; |
164 | 161 |
165 template <> struct ValueToString<LayoutMultiColumnSet*> { | 162 template <> struct ValueToString<LayoutMultiColumnSet*> { |
166 static String string(const LayoutMultiColumnSet* value) { return String::for
mat("%p", value); } | 163 static String string(const LayoutMultiColumnSet* value) { return String::for
mat("%p", value); } |
167 }; | 164 }; |
168 #endif | 165 #endif |
169 | 166 |
170 } // namespace blink | 167 } // namespace blink |
171 | 168 |
172 #endif // LayoutFlowThread_h | 169 #endif // LayoutFlowThread_h |
OLD | NEW |