Insert element into document before calling StyleForElement().
Disconnected elements do not have style and ancestor computed styles need to be construced in order to do inheritance. Attempt at adding sanity DCHECKs in StyleResolver failed because of these tests. Change-Id: Ic61abc2dc84ccf0d303fde41900e819b6b0723ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789528 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by:Majid Valipour <majidvp@chromium.org> Cr-Commit-Position: refs/heads/master@{#694245}
Showing
Please register or sign in to comment