| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 118 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
| 119 | 119 |
| 120 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&)
const; | 120 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&)
const; |
| 121 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit); | 121 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit); |
| 122 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*); | 122 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*); |
| 123 | 123 |
| 124 const RenderBox* currentStatePusherRenderBox() const; | 124 const RenderBox* currentStatePusherRenderBox() const; |
| 125 | 125 |
| 126 RenderMultiColumnSetList m_multiColumnSetList; | 126 RenderMultiColumnSetList m_multiColumnSetList; |
| 127 | 127 |
| 128 class RenderMultiColumnSetRange { | |
| 129 public: | |
| 130 RenderMultiColumnSetRange() | |
| 131 { | |
| 132 setRange(0, 0); | |
| 133 } | |
| 134 | |
| 135 RenderMultiColumnSetRange(RenderMultiColumnSet* start, RenderMultiColumn
Set* end) | |
| 136 { | |
| 137 setRange(start, end); | |
| 138 } | |
| 139 | |
| 140 void setRange(RenderMultiColumnSet* start, RenderMultiColumnSet* end) | |
| 141 { | |
| 142 m_startColumnSet = start; | |
| 143 m_endColumnSet = end; | |
| 144 } | |
| 145 | |
| 146 RenderMultiColumnSet* startColumnSet() const { return m_startColumnSet;
} | |
| 147 RenderMultiColumnSet* endColumnSet() const { return m_endColumnSet; } | |
| 148 | |
| 149 private: | |
| 150 RenderMultiColumnSet* m_startColumnSet; | |
| 151 RenderMultiColumnSet* m_endColumnSet; | |
| 152 }; | |
| 153 | |
| 154 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva
l; | 128 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva
l; |
| 155 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt
ervalTree; | 129 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt
ervalTree; |
| 156 | 130 |
| 157 class RegionSearchAdapter { | 131 class RegionSearchAdapter { |
| 158 public: | 132 public: |
| 159 RegionSearchAdapter(LayoutUnit offset) | 133 RegionSearchAdapter(LayoutUnit offset) |
| 160 : m_offset(offset) | 134 : m_offset(offset) |
| 161 , m_result(0) | 135 , m_result(0) |
| 162 { | 136 { |
| 163 } | 137 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 }; | 180 }; |
| 207 | 181 |
| 208 template <> struct ValueToString<RenderMultiColumnSet*> { | 182 template <> struct ValueToString<RenderMultiColumnSet*> { |
| 209 static String string(const RenderMultiColumnSet* value) { return String::for
mat("%p", value); } | 183 static String string(const RenderMultiColumnSet* value) { return String::for
mat("%p", value); } |
| 210 }; | 184 }; |
| 211 #endif | 185 #endif |
| 212 | 186 |
| 213 } // namespace blink | 187 } // namespace blink |
| 214 | 188 |
| 215 #endif // RenderFlowThread_h | 189 #endif // RenderFlowThread_h |
| OLD | NEW |