Custom state: Update the IDL interface for 'states' attribute
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}
Showing
Please register or sign in to comment