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

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

Issue 2931563002: [LayoutNG] Implement 'text-align-last' (Closed)
Patch Set: Rebase Created 3 years, 6 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_inline_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
index ed6a8ba5067c6a3aa9d6ec6cd4c04b6e62abbd44..338d9a7348509f0b0bfef7856adcf1d3a10c3ba8 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
@@ -45,7 +45,7 @@ class CORE_EXPORT NGInlineLayoutAlgorithm final
// Create a line.
// @return false if the line does not fit in the constraint space in block
// direction.
- bool CreateLine(NGInlineItemResults*, RefPtr<NGInlineBreakToken> = nullptr);
+ bool CreateLine(NGLineInfo*, RefPtr<NGInlineBreakToken> = nullptr);
RefPtr<NGLayoutResult> Layout() override;
@@ -60,22 +60,21 @@ class CORE_EXPORT NGInlineLayoutAlgorithm final
private:
bool IsHorizontalWritingMode() const { return is_horizontal_writing_mode_; }
- bool IsFirstLine() const;
- const ComputedStyle& FirstLineStyle() const;
- const ComputedStyle& LineStyle() const;
-
LayoutUnit LogicalLeftOffset() const;
void BidiReorder(NGInlineItemResults*);
- bool PlaceItems(NGInlineItemResults*, RefPtr<NGInlineBreakToken>);
+ bool PlaceItems(NGLineInfo*, RefPtr<NGInlineBreakToken>);
NGInlineBoxState* PlaceAtomicInline(const NGInlineItem&,
NGInlineItemResult*,
+ bool is_first_line,
LayoutUnit position,
NGLineBoxFragmentBuilder*,
NGTextFragmentBuilder*);
- void ApplyTextAlign(LayoutUnit* line_left,
+ void ApplyTextAlign(const ComputedStyle&,
+ ETextAlign,
+ LayoutUnit* line_left,
LayoutUnit inline_size,
LayoutUnit available_width);
@@ -91,7 +90,6 @@ class CORE_EXPORT NGInlineLayoutAlgorithm final
NGLogicalRect current_opportunity_;
unsigned is_horizontal_writing_mode_ : 1;
- unsigned disallow_first_line_rules_ : 1;
NGConstraintSpaceBuilder space_builder_;
NGBoxStrut border_and_padding_;

Powered by Google App Engine
This is Rietveld 408576698