[LayoutNG] Fix letter-/word-spacing for following lines
This patch fixes |NGLineBreaker| to cache 'letter-/word- spacing' values when it is constructed with a break token. This seems to be an old bug. r527007 (crrev.com/c/846585) initialized |current_style_| without calling |SetCurrentStyle|. Then r590190 (crrev.com/c/1217708) skipped caching locale and letter-/word-spacing in such case. The issue has been there since then, but it seems r701601 (crrev.com/c/1826063) turned it to more frequent crashes. Bug: 963521 Change-Id: I4abe207505917f351c8074a5e7e3cb139c9515d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1851625 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#705051}
Showing

