Check that first-letter text is not null before attaching.
Under certain combinations of whitespace-reattachment after removing nodes, parent element being display:contents triggering anonymous inline boxes for such parents, and ::first-letter being marked for re- attachment, we can end up with a calculated first-letter text node changing from non-null to null between style recalc and layout tree rebuild. Make sure we check that the first-letter text node is still non-null early in UpdateFirstLetterPseudoElement during the kRebuildLayoutTree so that we nuke the first-letter pseudo instead of re-attaching without first-letter text. Bug: 908253 Change-Id: Ifaac75b34edce21467581b5a9e78f5287a842fe5 Reviewed-on: https://chromium-review.googlesource.com/c/1356714 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#613076}
Showing
Please register or sign in to comment