Call RebuildLayoutTreeForChild for pseudo elements
Use the same code path as for normal elements to make sure the
WhiteSpaceAttacher marks pseudo elements as visited to get correct
whitespace handling. Also use RebuildPseudoElementLayoutTree() for the
::marker pseudo since the implementation was basically the same.
Fixes an incorrect whitespace removal bug and a fuzzer crash caused by
inconsistent ::first-letter texts when size containers were involved.
Bug: 372252513, 372358471
Change-Id: I1f99f3b83809b9eef72b42aec9ad099bf3c56ded
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5920416
Commit-Queue: Rune Lillesveen futhark@chromium.org
Reviewed-by: Morten Stenshorne mstensho@chromium.org
Cr-Commit-Position: refs/heads/main@{#1366747}