Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h |
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h b/third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf5d75a887c98552e36576337d4df1ba9623289a |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NGBoxIterator_h |
| +#define NGBoxIterator_h |
| + |
| +#include "core/layout/LayoutObject.h" |
| + |
| +namespace blink { |
| + |
| +class NGBox; |
| + |
| +class NGBoxIterator { |
|
cbiesinger
2016/08/10 19:55:24
Can you add a comment saying that this will iterat
Gleb Lanbin
2016/08/10 20:11:44
Done.
|
| + public: |
| + explicit NGBoxIterator(const LayoutObject*); |
| + NGBox first(); |
| + NGBox next(); |
| + |
| + private: |
| + void reset(); |
| + |
| + const LayoutObject* m_layoutObject; |
| + const LayoutObject* m_currentChild; |
| +}; |
| + |
| +} // namespace blink |
| +#endif // NGBoxIterator_h |