-
Kent Tamura authored
This CL ports LayoutButton::BaselinePosition() to ng_flex_layout_algorithm.cc. FlexNG's children don't have the last-line baseline values. So we set BaselineAlgorithmType in NGFlexLayoutAlgorithm::Layout() so that children provide the last-line baseline as well as the first-line baseline. PropagateBaselineFromChild() needs to call |NGBoxFragment:: FirstBaseline()| explicitly because button children's Baseline() is the last-line baselines. * text-overflow-ellipsis-button-expected.html Ellipsis processing in LayoutNG keeps the first letter. Bug: 1040826 Change-Id: I36402b4fc291d2989c45fb1764202f4fcea91fda Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300902 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#795798}
fc70bf9e