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

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

Issue 2551793002: [LayoutNG] NGInlineLayoutAlgorithm and NGTextLayoutAlgorithm (Closed)
Patch Set: Resolved merge conflicts Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
index eb9618775e9963ba858d13bc040f826bbc2f115f..d2105f794b8dce79caafc282faca7f4a703f1368 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
@@ -14,6 +14,7 @@ namespace blink {
class ComputedStyle;
class NGBreakToken;
class NGConstraintSpace;
+class NGFragmentBuilder;
class NGInlineNode;
// A class for inline layout (e.g. a anonymous block with inline-level children
@@ -45,10 +46,19 @@ class CORE_EXPORT NGInlineLayoutAlgorithm : public NGLayoutAlgorithm {
// Read-only Getters.
const ComputedStyle& Style() const { return *style_; }
+ bool LayoutCurrentChild();
+ NGConstraintSpace* CreateConstraintSpaceForCurrentChild() const;
+
+ enum State { kStateInit, kStateChildLayout, kStateFinalize };
+ State state_ = kStateInit;
+
RefPtr<const ComputedStyle> style_;
Member<NGInlineNode> first_child_;
Member<NGConstraintSpace> constraint_space_;
Member<NGBreakToken> break_token_;
+ Member<NGFragmentBuilder> builder_;
+ Member<NGConstraintSpace> space_for_current_child_;
+ Member<NGInlineNode> current_child_;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698