Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.h

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 MultiColumnFragmentainerGroupList(LayoutMultiColumnSet&); 150 MultiColumnFragmentainerGroupList(LayoutMultiColumnSet&);
151 ~MultiColumnFragmentainerGroupList(); 151 ~MultiColumnFragmentainerGroupList();
152 152
153 // Add an additional fragmentainer group to the end of the list, and return 153 // Add an additional fragmentainer group to the end of the list, and return
154 // it. 154 // it.
155 MultiColumnFragmentainerGroup& addExtraGroup(); 155 MultiColumnFragmentainerGroup& addExtraGroup();
156 156
157 // Remove all fragmentainer groups but the first one. 157 // Remove all fragmentainer groups but the first one.
158 void deleteExtraGroups(); 158 void deleteExtraGroups();
159 159
160 MultiColumnFragmentainerGroup& first() { return m_groups.first(); } 160 MultiColumnFragmentainerGroup& first() { return m_groups.front(); }
161 const MultiColumnFragmentainerGroup& first() const { 161 const MultiColumnFragmentainerGroup& first() const {
162 return m_groups.first(); 162 return m_groups.front();
163 } 163 }
164 MultiColumnFragmentainerGroup& last() { return m_groups.back(); } 164 MultiColumnFragmentainerGroup& last() { return m_groups.back(); }
165 const MultiColumnFragmentainerGroup& last() const { return m_groups.back(); } 165 const MultiColumnFragmentainerGroup& last() const { return m_groups.back(); }
166 166
167 typedef Vector<MultiColumnFragmentainerGroup, 1>::iterator iterator; 167 typedef Vector<MultiColumnFragmentainerGroup, 1>::iterator iterator;
168 typedef Vector<MultiColumnFragmentainerGroup, 1>::const_iterator 168 typedef Vector<MultiColumnFragmentainerGroup, 1>::const_iterator
169 const_iterator; 169 const_iterator;
170 170
171 iterator begin() { return m_groups.begin(); } 171 iterator begin() { return m_groups.begin(); }
172 const_iterator begin() const { return m_groups.begin(); } 172 const_iterator begin() const { return m_groups.begin(); }
(...skipping 13 matching lines...) Expand all
186 186
187 private: 187 private:
188 LayoutMultiColumnSet& m_columnSet; 188 LayoutMultiColumnSet& m_columnSet;
189 189
190 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 190 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
191 }; 191 };
192 192
193 } // namespace blink 193 } // namespace blink
194 194
195 #endif // MultiColumnFragmentainerGroup_h 195 #endif // MultiColumnFragmentainerGroup_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698