[LayoutNG] Fix NeedsShaping() not to include if length is zero
Zero-length text item was added in r652199 (crrev.com/c/1571113) so that |NGLineBreaker| can call |ClearNeedsLayout()| for fully-collapsed |LayoutText|. This patch fixes such zero-length text items not to require re-shaping when re-using existing |ShapeResult|. Found when debugging crbug.com/963521. Change-Id: I3d5a78463a1754daf8c9602ce1dcb855d603ade9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824759Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#699651}
Showing
Please register or sign in to comment