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

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

Issue 2230683003: [LayoutNG] Initial implementation of NGBoxIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: synced to the head 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 side-by-side diff with in-line comments
Download patch
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..bc300406258a6c5737c3198bb77bfdab7d6fb660
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h
@@ -0,0 +1,29 @@
+// 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;
+
+// NG Box iterator over siblings of the layout object.
+class NGBoxIterator {
+ 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
« 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