[css-text] Set should_create_line_box on ItemResult of empty lines
When a sequence of preserved space is longer than the line size, we are handle it as trailing space. The HandleTrailingSpace function creates a new ItemResult to handle this trailing preserved spaces. In general, it doesn't need to enable the 'should_create_line_box' flag, since the previous ItemResult associated to that line already has it. However, in case of a ItemResult longer than the line, we would end up with this newly created instance, which flag is disabled by default. This CL enables the 'should_create_line_box' flag for ItemResult with 'end' offset exceeding the line size. This ensures that lines that are all preserved spaces will required a LineBox, hence it should account for computing the box's size. Bug: 1136748 Change-Id: I0df602d3c13129e4369e351c142601c1806214c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503550 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#821530}
Showing
Please register or sign in to comment