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

Unified Diff: third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.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_line_breaker.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h
index 97343250d6842e431f323eb97df75c66c917df76..2c6b2da41bd301e4ff35120e7c491be6e60cdb7b 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h
@@ -38,13 +38,13 @@ class CORE_EXPORT NGLineBreaker {
// TODO(kojii): NGInlineLayoutAlgorithm is needed because floats require
// not only constraint space but also container builder. Consider refactor
// not to require algorithm.
- void NextLine(NGInlineItemResults*, NGInlineLayoutAlgorithm*);
+ bool NextLine(NGLineInfo*, NGInlineLayoutAlgorithm*);
// Create an NGInlineBreakToken for the last line returned by NextLine().
RefPtr<NGInlineBreakToken> CreateBreakToken() const;
private:
- void BreakLine(NGInlineItemResults*, NGInlineLayoutAlgorithm*);
+ void BreakLine(NGLineInfo*, NGInlineLayoutAlgorithm*);
enum class LineBreakState {
// The current position is not breakable.
@@ -71,8 +71,8 @@ class CORE_EXPORT NGLineBreaker {
void HandleOpenTag(const NGInlineItem&, NGInlineItemResult*);
void HandleCloseTag(const NGInlineItem&, NGInlineItemResult*);
- void HandleOverflow(NGInlineItemResults*);
- void Rewind(NGInlineItemResults*, unsigned new_end);
+ void HandleOverflow(NGLineInfo*);
+ void Rewind(NGLineInfo*, unsigned new_end);
void UpdateBreakIterator(const ComputedStyle&);

Powered by Google App Engine
This is Rietveld 408576698