Always rebuild layout tree for shadow root when host is rebuilt.
We tried to do a light-weight search for the first in-flow or text child of the shadow root when shadow root children didn't need a rebuild. This was done to make the WhiteAttacher point to the correct text node when re-attaching the ::before element. This code did not properly handle slots and insertion points. Also, supporting display:contents for ::after means we will have to traverse shadow root children from its last node until we find the first in-flow to properly attach a space inside an ::after element. For simplicity, and correctness, walk the shadow root children using RebuildChildrenLayoutTrees() instead. Bug: 764686 Change-Id: Icb9f8db7172ea54bd876fd95ca722c2906b4c639 Reviewed-on: https://chromium-review.googlesource.com/667138Reviewed-by:nainar <nainar@chromium.org> Reviewed-by:
meade_UTC10 <meade@chromium.org> Commit-Queue: Rune Lillesveen <rune@opera.com> Cr-Commit-Position: refs/heads/master@{#502194}
Showing
Please register or sign in to comment