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

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

Issue 2898413002: [LayoutNG] Add box fragments to line boxes when needed (Closed)
Patch Set: x64 build fix Created 3 years, 7 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/inline/ng_line_box_fragment_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.h
index f4e4da8eb7bc2f8339158eff3790f1d649d07916..aa09de1b1f6549ac7beeb06882516c74a993dc12 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.h
@@ -22,6 +22,9 @@ class CORE_EXPORT NGLineBoxFragmentBuilder final {
public:
explicit NGLineBoxFragmentBuilder(NGInlineNode*);
+ NGLineBoxFragmentBuilder& SetWritingMode(NGWritingMode);
+ NGWritingMode WritingMode() const { return writing_mode_; }
+
NGLineBoxFragmentBuilder& SetDirection(TextDirection);
NGLineBoxFragmentBuilder& SetInlineSize(LayoutUnit);
@@ -36,6 +39,9 @@ class CORE_EXPORT NGLineBoxFragmentBuilder final {
const Vector<RefPtr<NGPhysicalFragment>>& Children() const {
return children_;
}
+ Vector<RefPtr<NGPhysicalFragment>>& MutableChildren() { return children_; }
+ const Vector<NGLogicalOffset>& Offsets() const { return offsets_; }
+ Vector<NGLogicalOffset>& MutableOffsets() { return offsets_; }
void SetMetrics(const NGLineHeightMetrics&);
const NGLineHeightMetrics& Metrics() const { return metrics_; }
@@ -48,6 +54,7 @@ class CORE_EXPORT NGLineBoxFragmentBuilder final {
RefPtr<NGPhysicalLineBoxFragment> ToLineBoxFragment();
private:
+ NGWritingMode writing_mode_;
TextDirection direction_;
Persistent<NGInlineNode> node_;

Powered by Google App Engine
This is Rietveld 408576698