Description[LayoutNG] Implement 'text-align-last'
This patch takes 'text-align-last' into account to determine the used
value of 'text-align', though not all used values of text-align is not
supported yet.
In doing so, this patch adds NGLineInfo, similar to LineInfo, that
communicates the properties of a line box to
NGInlineLayoutAlgorithm::CreateLine(). IsFirstLine() for '::first-line'
pseudo elements is moved to this class. Some more fields will be added
in future, such as trialing spaces.
LayoutBlockFlow::TextAlignmentForLine() is moved to ComputedStyle to
share the code with LayoutObject, though the function still remains
since LayoutRuby overrides the function.
Tests in fast/css3-text/css3-text-align-last do not pass yet since
single test file contains all values.
BUG=636993
Review-Url: https://codereview.chromium.org/2931563002
Cr-Commit-Position: refs/heads/master@{#478860}
Committed: https://chromium.googlesource.com/chromium/src/+/b8eb36b221b05003be9f36ffae3d2e3a5a77651e
Patch Set 1 #Patch Set 2 : Inherit from Vector #Patch Set 3 : Inherit from Vector doesn't work #Patch Set 4 : Add NGLineInfo #Patch Set 5 : Cleanup #Patch Set 6 : Rebase #Messages
Total messages: 29 (19 generated)
|