Bug 119725

Summary: Simplify RadioNodeList's anonymous indexed getter
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, ggaren, kling, koivisto, kondapallykalyan, oliver
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Ryosuke Niwa
Reported 2013-08-12 20:57:53 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/c06e3ea129f0a16eb4275a2c6bb9e77094bda632 Make RadioNodeList's anonymous indexed getter argument mandatory and drop the [IsIndex] IDL extended attribute. 'optional' and [IsIndex] have no effect on the generated code of anonymous indexed getters: - There is no way for the caller to omit the index - The generated code uses ObjectTemplate::SetIndexedPropertyHandler() and the IndexedPropertyGetterCallback takes a uint32_t in argument. There is no web-exposed behavior change, the generated bindings code is identical.
Attachments
Patch (1.40 KB, patch)
2013-08-13 01:38 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2013-08-13 01:38:50 PDT
Ryosuke Niwa
Comment 2 2013-08-13 02:02:09 PDT
Comment on attachment 208608 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208608&action=review > Source/WebCore/ChangeLog:12 > + This change has strictly no impact on the generated bindings code > + but it simplifies the IDL. Doesn't IsIndex cause INDEX_SIZE_ERR to be thrown when the index is negative?
Chris Dumez
Comment 3 2013-08-13 02:49:32 PDT
(In reply to comment #2) > (From update of attachment 208608 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=208608&action=review > > > Source/WebCore/ChangeLog:12 > > + This change has strictly no impact on the generated bindings code > > + but it simplifies the IDL. > > Doesn't IsIndex cause INDEX_SIZE_ERR to be thrown when the index is negative? In theory, yes but not for anonymous indexed getters. As I said in the Changelog, the generated code is *exactly* the same. Also note that throwing an INDEX_SIZE_ERR for negative values in indexed getter would not be according to specification.
WebKit Commit Bot
Comment 4 2013-08-13 09:13:36 PDT
Comment on attachment 208608 [details] Patch Clearing flags on attachment: 208608 Committed r154003: <http://trac.webkit.org/changeset/154003>
WebKit Commit Bot
Comment 5 2013-08-13 09:13:39 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.