WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
112411
WebKitCSSKeyframesRule.idl should have item method
https://bugs.webkit.org/show_bug.cgi?id=112411
Summary
WebKitCSSKeyframesRule.idl should have item method
foo
Reported
2013-03-14 23:39:27 PDT
WebKitCSSKeyframesRule.idl should have item method
Attachments
Patch
(1.69 KB, patch)
2013-03-14 23:54 PDT
,
foo
haraken
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
foo
Comment 1
2013-03-14 23:54:22 PDT
Created
attachment 193243
[details]
Patch
foo
Comment 2
2013-03-14 23:56:18 PDT
Currently only WebKitCSSKeyframesRule.idl doesn't have item() and have [IndexedGetter].
Kentaro Hara
Comment 3
2013-03-15 00:03:57 PDT
Comment on
attachment 193243
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193243&action=review
> Source/WebCore/ChangeLog:10 > + There is WebKitCSSKeyframesRule::item() method but WebKitCSSKeyframesRule.idl doesn't have item method. > + Currently CodeGeneratorV8 have to treat WebKitCSSKeyframesRule specially due to lack of item() definition. > + (On the other hand it seems that JSC generator doesn't need to get IndexGetter's return type from IDL.)
What is the spec saying? We should follow the spec.
> Source/WebCore/ChangeLog:12 > + No new tests, refactoring only. No run-bindings-tests changes.
This is not refactoring. You're changing behavior that is exposed to outside. You have to add layout tests. (But before that I'd like to confirm what the spec is saying.)
foo
Comment 4
2013-03-15 01:59:08 PDT
Regarding the working draft, there is no item method in CSSKeyframesRule.
http://www.w3.org/TR/css3-animations/#csskeyframesrule
Meanwhile, WebKitCSSKeyframesRule.idl has [IndexedGetter] attribute. According to the WebKitIDL spec, the bindings code for indexed getters is generated automatically so that XXX[i] behaves equivalent to XXX.item(i). This implies the interface should have item method.
http://trac.webkit.org/wiki/WebKitIDL#IndexedGetter
Thus here my conclusion is: (1) This patch is not good. (2) There's inconsistency between CSS3 Animations Working draft and WebKitIDL. ([IndexedGetter] but no item() method in WebKitIDL)
Kentaro Hara
Comment 5
2013-03-15 02:32:28 PDT
(In reply to
comment #4
)
> Regarding the working draft, there is no item method in CSSKeyframesRule. >
http://www.w3.org/TR/css3-animations/#csskeyframesrule
> > Meanwhile, WebKitCSSKeyframesRule.idl has [IndexedGetter] attribute. > According to the WebKitIDL spec, the bindings code for indexed getters is generated automatically so that XXX[i] behaves equivalent to XXX.item(i). > This implies the interface should have item method. >
http://trac.webkit.org/wiki/WebKitIDL#IndexedGetter
> > Thus here my conclusion is: > (1) This patch is not good. > (2) There's inconsistency between CSS3 Animations Working draft and WebKitIDL. > ([IndexedGetter] but no item() method in WebKitIDL)
Thanks, so a right fix would be either of: [1] Remove [IndexedGetter] from WebKitIDL according to the spec. [2] Propose to add [IndexedGetter] and item() to the spec. CC-ing spec folks.
Ahmad Saleem
Comment 6
2022-09-02 13:51:40 PDT
cdumez@apple.com
&
rniwa@webkit.org
- Is this needed anymore? Thanks!
Ryosuke Niwa
Comment 7
2022-09-03 11:59:46 PDT
This is won't fix at this point.
Ryosuke Niwa
Comment 8
2022-09-03 12:07:02 PDT
Tracking the addition of index getter to the spec in
https://github.com/w3c/csswg-drafts/issues/7684
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug