| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 // Used to estimate the maximum height of the flow thread. | 117 // Used to estimate the maximum height of the flow thread. |
| 118 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } | 118 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } |
| 119 | 119 |
| 120 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; | 120 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual const char* renderName() const = 0; | 123 virtual const char* renderName() const = 0; |
| 124 | 124 |
| 125 void updateRegionsFlowThreadPortionRect(); | 125 void generateColumnSetIntervalTree(); |
| 126 | 126 |
| 127 RenderMultiColumnSetList m_multiColumnSetList; | 127 RenderMultiColumnSetList m_multiColumnSetList; |
| 128 | 128 |
| 129 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva
l; | 129 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva
l; |
| 130 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt
ervalTree; | 130 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt
ervalTree; |
| 131 | 131 |
| 132 class MultiColumnSetSearchAdapter { | 132 class MultiColumnSetSearchAdapter { |
| 133 public: | 133 public: |
| 134 MultiColumnSetSearchAdapter(LayoutUnit offset) | 134 MultiColumnSetSearchAdapter(LayoutUnit offset) |
| 135 : m_offset(offset) | 135 : m_offset(offset) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 template <> struct ValueToString<RenderMultiColumnSet*> { | 166 template <> struct ValueToString<RenderMultiColumnSet*> { |
| 167 static String string(const RenderMultiColumnSet* value) { return String::for
mat("%p", value); } | 167 static String string(const RenderMultiColumnSet* value) { return String::for
mat("%p", value); } |
| 168 }; | 168 }; |
| 169 #endif | 169 #endif |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif // RenderFlowThread_h | 173 #endif // RenderFlowThread_h |
| OLD | NEW |