| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MultiColumnFragmentainerGroup_h | 5 #ifndef MultiColumnFragmentainerGroup_h |
| 6 #define MultiColumnFragmentainerGroup_h | 6 #define MultiColumnFragmentainerGroup_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutMultiColumnFlowThread.h" | 8 #include "core/layout/LayoutMultiColumnFlowThread.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 | 10 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 iterator end() { return m_groups.end(); } | 186 iterator end() { return m_groups.end(); } |
| 187 const_iterator end() const { return m_groups.end(); } | 187 const_iterator end() const { return m_groups.end(); } |
| 188 | 188 |
| 189 size_t size() const { return m_groups.size(); } | 189 size_t size() const { return m_groups.size(); } |
| 190 MultiColumnFragmentainerGroup& operator[](size_t i) { return m_groups.at(i); } | 190 MultiColumnFragmentainerGroup& operator[](size_t i) { return m_groups.at(i); } |
| 191 const MultiColumnFragmentainerGroup& operator[](size_t i) const { | 191 const MultiColumnFragmentainerGroup& operator[](size_t i) const { |
| 192 return m_groups.at(i); | 192 return m_groups.at(i); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void append(const MultiColumnFragmentainerGroup& group) { | 195 void append(const MultiColumnFragmentainerGroup& group) { |
| 196 m_groups.append(group); | 196 m_groups.push_back(group); |
| 197 } | 197 } |
| 198 void shrink(size_t size) { m_groups.shrink(size); } | 198 void shrink(size_t size) { m_groups.shrink(size); } |
| 199 | 199 |
| 200 private: | 200 private: |
| 201 LayoutMultiColumnSet& m_columnSet; | 201 LayoutMultiColumnSet& m_columnSet; |
| 202 | 202 |
| 203 Vector<MultiColumnFragmentainerGroup, 1> m_groups; | 203 Vector<MultiColumnFragmentainerGroup, 1> m_groups; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace blink | 206 } // namespace blink |
| 207 | 207 |
| 208 #endif // MultiColumnFragmentainerGroup_h | 208 #endif // MultiColumnFragmentainerGroup_h |
| OLD | NEW |