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

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

Issue 2772503004: [LayoutNG] Add NGInlineBreakToken and back of NGInlineLayoutAlgorithm (Closed)
Patch Set: Resolved merge conflicts Created 3 years, 9 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_line_box_fragment_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment_builder.h
index 7606b544b16df332715d947ccdad2fb2e3c05f96..da95e4f268e962417e376e3b8eeb67d8cddbb79e 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment_builder.h
@@ -11,6 +11,7 @@
namespace blink {
+class NGInlineBreakToken;
class NGInlineNode;
class NGPhysicalFragment;
class NGPhysicalLineBoxFragment;
@@ -36,6 +37,10 @@ class CORE_EXPORT NGLineBoxFragmentBuilder final {
void UniteMetrics(const NGLineHeightMetrics&);
const NGLineHeightMetrics& Metrics() const { return metrics_; }
+ // Set the break token for the fragment to build.
+ // A finished break token will be attached if not set.
+ void SetBreakToken(RefPtr<NGInlineBreakToken>);
+
// Creates the fragment. Can only be called once.
RefPtr<NGPhysicalLineBoxFragment> ToLineBoxFragment();
@@ -50,6 +55,8 @@ class CORE_EXPORT NGLineBoxFragmentBuilder final {
Vector<NGLogicalOffset> offsets_;
NGLineHeightMetrics metrics_;
+
+ RefPtr<NGInlineBreakToken> break_token_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698