| OLD | NEW |
| (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 | |
| OLD | NEW |