commit | 68d7dee11c9b6217d27521cbe3ad66e8437402a2 | [log] [tgz] |
---|---|---|
author | Philip Rogers <pdr@chromium.org> | Fri Jan 17 02:18:39 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 17 02:18:39 2025 |
tree | 149370cc0961df59790ced0b2e06e8c25cd737ba | |
parent | 3e82427cc12f90f01444e1dcb65f48740e62596f [diff] |
Cleanup PaintLayer::has_visible_content_ This patch cleans up PaintLayer::has_visible_content_ for future optimizations. There should be no change in behavior. The changes are: 1. Move has_visible_content_ logic into a new function: `PaintLayer::UpdateHasVisibleContent`. 2. Move update of `has_visible_content_` into the `needs_descendant_dependent_flags_update_` conditional of `PaintLayer::UpdateDescendantDependentFlags`. Though this field does not depend on PaintLayer descendants, it is used to update `has_visible_self_painting_descendant_`. 3. Check `child->HasVisibleContent` instead of `child->has_visible_content_`, as the former has a CHECK that the dirty bit is clean. Change-Id: I08f74ccc49956a48eaad94dec401865934b754eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6173294 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1407688}
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.