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

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

Issue 2237623002: Demo patch that demonstrates simple block layout using Layout NG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed NGBlockLayoutAlgorithmTest Created 4 years, 4 months 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NGBoxIterator_h
6 #define NGBoxIterator_h
7
8 #include "core/layout/LayoutObject.h"
9
10 namespace blink {
11
12 class NGBox;
13
14 // NG Box iterator over siblings of the layout object.
15 class CORE_EXPORT NGBoxIterator
16 : public std::iterator<std::forward_iterator_tag, NGBox> {
17 public:
18 class iterator {
19 public:
20 iterator& operator=(const iterator& otherValue);
21 iterator(LayoutObject* layoutObject) : m_layoutObject(layoutObject) {}
22 iterator& operator++();
23 bool operator!=(const iterator& other);
24 NGBox operator*();
25
26 private:
27 LayoutObject* m_layoutObject;
28 };
29 explicit NGBoxIterator(LayoutObject*);
30
31 iterator begin() const;
32 iterator end() const { return iterator(nullptr); }
33
34 private:
35 LayoutObject* m_layoutObject;
36 };
37
38 } // namespace blink
39 #endif // NGBoxIterator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.cc ('k') | third_party/WebKit/Source/core/layout/ng/ng_box_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698