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

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

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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.cc
index 8c1b2b5bef7ca0769620323302390e4ca239acf6..b7da84858ebe5da66fbb70122fce95772f719979 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_box_fragment_builder.cc
@@ -14,7 +14,15 @@
namespace blink {
NGLineBoxFragmentBuilder::NGLineBoxFragmentBuilder(NGInlineNode* node)
- : direction_(TextDirection::kLtr), node_(node) {}
+ : writing_mode_(kHorizontalTopBottom),
+ direction_(TextDirection::kLtr),
+ node_(node) {}
+
+NGLineBoxFragmentBuilder& NGLineBoxFragmentBuilder::SetWritingMode(
+ NGWritingMode writing_mode) {
+ writing_mode_ = writing_mode;
+ return *this;
+}
NGLineBoxFragmentBuilder& NGLineBoxFragmentBuilder::SetDirection(
TextDirection direction) {

Powered by Google App Engine
This is Rietveld 408576698