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

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

Issue 2284983002: [layoutng] Implement state machine for async layout (Closed)
Patch Set: NOTREACHED, also fix the windows compile error Created 4 years, 3 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 #include "core/layout/ng/ng_box.h"
10
11 namespace blink {
12
13 class NGBox;
14
15 // NG Box iterator over siblings of the layout object.
16 class CORE_EXPORT NGBoxIterator
17 : public std::iterator<std::forward_iterator_tag, NGBox> {
18 public:
19 class iterator {
20 public:
21 iterator& operator=(const iterator& otherValue);
22 iterator(NGBox box) : box_(box) {}
23 iterator& operator++();
24 bool operator!=(const iterator& other);
25 NGBox operator*();
26
27 private:
28 NGBox box_;
29 };
30 explicit NGBoxIterator(NGBox);
31
32 iterator begin() const;
33 iterator end() const { return iterator(NGBox()); }
34
35 private:
36 NGBox box_;
37 };
38
39 } // namespace blink
40 #endif // NGBoxIterator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698