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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_box.cc

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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.cc b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
index 7f8a30fa105500bd6dd3abbdf290f4cbd5451c08..8c9a1d61d184a9fcffc94a585f63bff5a363ca5e 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
@@ -10,7 +10,7 @@
namespace blink {
NGFragment* NGBox::layout(const NGConstraintSpace& constraintSpace) {
- NGBlockLayoutAlgorithm algorithm(style(), firstChild());
+ NGBlockLayoutAlgorithm algorithm(style(), iterator());
return algorithm.layout(constraintSpace);
}
@@ -18,12 +18,4 @@ const ComputedStyle* NGBox::style() const {
return m_layoutObject->style();
}
-const NGBox NGBox::firstChild() const {
- return NGBox(m_layoutObject->slowFirstChild());
-}
-
-const NGBox NGBox::nextSibling() const {
- return NGBox(m_layoutObject->nextSibling());
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_box_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698