Fix line cache when `-webkit-line-clamp` is specified
|NGBlockLayoutAlgorithm| has two branches, one when |lines_until_clamp_| becomes |<= 0| by the layout, and another when it is |== 0|. To make sure we run all these logic, this patch: * Updates |lines_until_clamp_| by the number of reused lines. * Limits reusing only up to 1, so that conditions above go normal layout codepath. Bug: 1140951 Change-Id: I15fe81b4957fe70d23bb88aae700642297bb1550 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491561Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#819867}
Showing
Please register or sign in to comment