commit | caf740f6c0b57ca102026f40f3cc62f9f3cf5159 | [log] [tgz] |
---|---|---|
author | Rune Lillesveen <futhark@chromium.org> | Mon May 11 16:00:44 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 11 16:00:44 2020 |
tree | 14a8eb306b2cacb686b725acc56b395a688e0c0e | |
parent | 0b707cbaa2cb806162797be55caf9f8074fbdccf [diff] |
Don't load CSS resources for non-rendered elements. The current situation was that we triggered loading of all resources, like background-images, for an element we computed style for. Instead, align with Firefox and Safari to skip fetching for: * display:none elements * elements in display:none subtrees * display:contents elements * elements outside the flat tree Note that we still trigger fetches for visibility:hidden, which is in line with what Firefox and Safari does. Also removed an unnecessary StyleResolver::LoadPendingResources wrapper. Bug: 765095 Change-Id: I958b5d22bac942408957398bf5761269908466b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2190650 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#767327}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.