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

Custom state: Update the IDL interface for 'states' attribute #27267

Merged
merged 1 commit into from Jan 22, 2021

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 21, 2021

In order to conform to the latest specification [1], this CL changes the
type of 'states' attribute from 'DOMTokenList' to 'CustomStateSet',
which is a 'setlike<DOMString>.'

  • dom_token_list.{cc,h}
    Remove 'virtual' from 'value()' and 'setValue()'. No one overrides
    them.

  • custom_state_set.{cc,h,idl}
    Added.

  • element_internals.{cc,h,idl}
    Switch 'states' implementation.
    Remove 'CustomStatesTokenList' class

  • wpt/custom-elements/state/tentative/
    Update tests for the new interface

This feature is not shipped yet.

[1] https://wicg.github.io/custom-state-pseudo-class/

Bug: 1012098
Change-Id: I642d16f96449db93cc9c4dc1211c7f242e608192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2639345
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845986}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2639345 branch 3 times, most recently from 20942cc to 77cd5cd Compare January 22, 2021 03:57
In order to conform to the latest specification [1], this CL changes the
type of 'states' attribute from 'DOMTokenList' to 'CustomStateSet',
which is a 'setlike<DOMString>.'

* dom_token_list.{cc,h}
  Remove 'virtual' from 'value()' and 'setValue()'. No one overrides
  them.

* custom_state_set.{cc,h,idl}
  Added.

* element_internals.{cc,h,idl}
  Switch 'states' implementation.
  Remove 'CustomStatesTokenList' class

* wpt/custom-elements/state/tentative/
  Update tests for the new interface

This feature is not shipped yet.

[1] https://wicg.github.io/custom-state-pseudo-class/

Bug: 1012098
Change-Id: I642d16f96449db93cc9c4dc1211c7f242e608192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2639345
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845986}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants