Don't fetch resources for getComputedStyle for pseudo.
Calling getComputedStyle(div, "::before") would trigger a fetch for the background-image url in: div::before { background-image: url(dont-fetch.png) } which should be unnecessary. Still, we couldn't simply check for PseudoElement being non-null since we need to fetch background images for ::first-line for which we have no PseudoElement. Bug: 1086142 Change-Id: I93d2b59f703f339c104a3735794d0e42287475fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218034 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#772681}
Showing
Please register or sign in to comment