commit | 9fa89c8f8bfd46f83916e885887a89bd3d93dee4 | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Fri Feb 21 14:44:21 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 21 14:44:21 2025 |
tree | c3fc1b574ba09b56adaafd801c819914cd9d63b1 | |
parent | f64f6f28d2b11d76a84e0d1bddfde380d8524d95 [diff] |
[functions] Add InspectorCSSAgent::CollectReferencedFunctionRules This CL adds a function that collects all referenced custom functions (transitively) within some match result. This is intended to be used during getMatchedStylesForNode, but it's unused outside of tests for now. Function references (<dashed-function>s) are tree-scoped references, which means that they can only be dereferenced in the context of the originating tree-scope [1]. The code in this CL generally prepares for handling this correctly, but just uses the Document for now (pending Issue 394111301). [1] https://drafts.csswg.org/css-scoping-1/#css-tree-scoped-reference Bug: 325504770, 392034817, 394111301 Change-Id: I1269f403b96fc5c21de938fa2402dc0958780bdc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6253679 Reviewed-by: Philip Pfaffe <pfaffe@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1423099}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.