Make sure removed pseudo elements are not marked for reattachment.
We do not modify the DOM during style recalc, but we may remove pseudo elements if they are no longer rendered after style recalc. The recalc code marked the pseudo elements for reattachment before removing them which meant the layout_tree_rebuild_root_ in StyleEngine pointed to a disconnected pseudo element. Avoid the marking if we are about to remove the pseudo element. This is done as part of the preparation for flat tree style recalc. Bug: 972752 Change-Id: Icb472bf8073e518a456c86bceb1a1ddbf48f9c99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728653Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#682665}
Showing
Please register or sign in to comment