commit | b9439522925b7f72ac3069275604742167cfb367 | [log] [tgz] |
---|---|---|
author | Kevin Babbitt <kbabbitt@microsoft.com> | Thu Aug 15 17:26:18 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 15 17:26:18 2024 |
tree | 0e1bb2854ed752e02a9c8b1c2d7e057293566fd3 | |
parent | d0987d228027d2acc6ddb59e4c6166057553b23f [diff] |
Templatize RuleInvalidationDataVisitor for Builder and Tracer variants Wrap the spots where we mutate the invalidation data in compile-time checks so that (a) they're only included in the Builder case; (b) the Tracer can treat all the data it's looking at as const. In some cases, calls that were directly on an InvalidationSet are wrapped in helper methods. This is to facilitate adding tracing alongside those calls in the Tracer case. Several places where InvalidationSets were passed by reference also needed to be switched to pointers. This is because there are cases where the Tracer may not find an InvalidationSet we expect to be there. One example is when, at the time we run the Tracer, a rule has been added to a stylesheet but not yet indexed. In such a case, the InvalidationSetToSelectorMap will pick up information about the new rule as it gets indexed on the next document lifecycle update. Bug: 337076014 Change-Id: I2151f0103628c5279485cf3fb05bd08de50e69d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5722930 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Kevin Babbitt <kbabbitt@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1342338}
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.