Bug 1691701 [wpt PR 27545] - Not all inline break tokens have ComputedStyle., a=testonly
commit5b45dfae060d9b4a75ddcc1fc793106eb579ddaf
authorMorten Stenshorne <mstensho@chromium.org>
Thu, 11 Feb 2021 16:47:32 +0000 (11 16:47 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Feb 2021 12:12:25 +0000 (12 12:12 +0000)
tree586673776691feba7cb1ac7ba210fd3a3fea2d8f
parent292c8d7b88491c5de865ca41c0eb74f6cb9c9d3b
Bug 1691701 [wpt PR 27545] - Not all inline break tokens have ComputedStyle., a=testonly

Automatic update from web-platform-tests
Not all inline break tokens have ComputedStyle.

This has been the case ever since the ComputedStyle field was added:
https://chromium-review.googlesource.com/846585

AddBreakBeforeChild() in NGFragmentBuilder (since moved to
NGBoxFragmentBuilder) passes nullptr for ComputedStyle.

So just add a nullptr check.

Bug: 1175666
Change-Id: Ie0d46c93a64f25de09f3193c5cb329e9ac37b88b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2683984
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#852354}

--

wpt-commits: a13d98ce6f8023a121131db9095454e42da4ec5b
wpt-pr: 27545
testing/web-platform/tests/css/css-break/no-room-for-line-in-first-fragmentainer-crash.html [new file with mode: 0644]