-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116 merge] Revert "blink: avoid unnecessary processing when class a…
…ttribute changes" This reverts commit c628499. Reason for revert: See bug 1474382 for regression. Original change's description: > blink: avoid unnecessary processing when class attribute changes > > When the class attribute changes Element does the following: > > 1. Updates `class` on the ElementData. > 2. Calls to the StyleEngine. > > If the ElementData is shared, and the class data is already up > to date date, then 1 is unnecessary. > > Additionally, if in the inactive document, then 2 is unnecessary. > 2 is unnecessary in this case because of an early out in the > StyleEngine: > https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/css/style_engine.cc;l=1155;drc=90b428dcab63b652cc91107b81d2758270e92ac0 > > This takes one of the bits in ElementData to track whether the > class is dirty. As the bitfield is 32 bits, I'm reducing the > number of attributes by half (2^28th to 2^27th). This also ensures > we only create ShareableElementData if the number of attributes > fits in the bitmask. > > Bug: 1449329 > Change-Id: Ia661bff5b1a7399be86c6fe0df1eb14fed63982b > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4559646 > Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> > Commit-Queue: Scott Violet <sky@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1149848} (cherry picked from commit c70e750) Bug: 1449329, 1474382 Change-Id: I88187e5972fb747f041ec253f66250065b4a5426 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4803704 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1187041} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4807997 Owners-Override: Daniel Yip <danielyip@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#1609} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Scott Violet
authored and
Daniel Yip
committed
Aug 25, 2023
1 parent
805d74e
commit 7d98a3c
Showing
5 changed files
with
27 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters