Bug 119725 - Simplify RadioNodeList's anonymous indexed getter
Summary: Simplify RadioNodeList's anonymous indexed getter
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-08-12 20:57 PDT by Ryosuke Niwa
Modified: 2013-08-13 09:13 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.40 KB, patch)
2013-08-13 01:38 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 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.
Comment 1 Chris Dumez 2013-08-13 01:38:50 PDT
Created attachment 208608 [details]
Patch
Comment 2 Ryosuke Niwa 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?
Comment 3 Chris Dumez 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.
Comment 4 WebKit Commit Bot 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>
Comment 5 WebKit Commit Bot 2013-08-13 09:13:39 PDT
All reviewed patches have been landed.  Closing bug.