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

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

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 #include "core/layout/ng/ng_box_iterator.h"
6 #include "core/layout/ng/ng_box.h"
7
8 namespace blink {
9
10 NGBoxIterator::NGBoxIterator(NGBox box) : box_(box) {}
11
12 NGBoxIterator::iterator& NGBoxIterator::iterator::operator=(
13 const NGBoxIterator::iterator& otherValue) {
14 box_ = otherValue.box_;
15 return (*this);
16 }
17
18 NGBoxIterator::iterator& NGBoxIterator::iterator::operator++() {
19 box_ = box_.nextSibling();
20 return (*this);
21 }
22
23 bool NGBoxIterator::iterator::operator!=(const iterator& other) {
24 return box_ != other.box_;
25 }
26
27 NGBox NGBoxIterator::iterator::operator*() {
28 return box_;
29 }
30
31 NGBoxIterator::iterator NGBoxIterator::begin() const {
32 return iterator(box_);
33 }
34
35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698