Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve element reflection #10221

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Improve element reflection #10221

merged 3 commits into from
Mar 26, 2024

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 22, 2024

This attempts to make the following improvements:

  1. Make it more clear that initializing attr is not the first step in an algorithm, but rather something that counts for all the list items.
  2. Rewrite the associated element(s) fields as algorithms. As there are no downstream references so far this is a change we can still make.
  3. Add another layer of caching that is separate from the FrozenArray to avoid having to compare a list of elements with a FrozenArray directly.

This helps with #10219.


/common-dom-interfaces.html ( diff )
/dom.html ( diff )
/popover.html ( diff )

This attempts to make the following improvements:

1. Make it more clear that initializing attr is not the first step in an algorithm, but rather something that counts for all the list items.
2. Rewrite the associated element(s) fields as algorithms. As there are no downstream references so far this is a change we can still make.
3. Add another layer of caching that is separate from the FrozenArray to avoid having to compare a list of elements with a FrozenArray directly.

This helps with #10219.
@annevk annevk requested review from domenic and smaug---- March 25, 2024 14:39
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

source Show resolved Hide resolved
source Show resolved Hide resolved
@annevk annevk merged commit c589287 into main Mar 26, 2024
2 checks passed
@annevk annevk deleted the annevk/reflecting-elements branch March 26, 2024 08:20
@annevk annevk added the topic: reflect For issues with reflected IDL attributes and friends label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: reflect For issues with reflected IDL attributes and friends
Development

Successfully merging this pull request may close these issues.

2 participants