RESOLVED FIXED 111230
[V8] HTMLDocument.all should have [Replaceable]
https://bugs.webkit.org/show_bug.cgi?id=111230
Summary [V8] HTMLDocument.all should have [Replaceable]
Kentaro Hara
Reported 2013-03-01 15:57:26 PST
(Although HTMLDocument.all is already removed from the spec,) it is expected to behave as a [Replaceable] attribute. By adding a [Replaceable] IDL attribute, we can remove custom implementation of HTMLDocument.all.
Attachments
Patch (2.53 KB, patch)
2013-03-01 15:59 PST, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2013-03-01 15:59:22 PST
Adam Barth
Comment 2 2013-03-02 23:24:33 PST
Comment on attachment 191057 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191057&action=review > Source/WebCore/ChangeLog:14 > + I confimed that exactly the same code is generated for .all getter > + and setter. Really! Wow, I had no idea. Do all Replaceable attributes call ForceSet?
Adam Barth
Comment 3 2013-03-02 23:24:53 PST
Comment on attachment 191057 [details] Patch Sorry, misclick.
Kentaro Hara
Comment 4 2013-03-03 16:18:36 PST
Kentaro Hara
Comment 5 2013-03-03 16:21:30 PST
(In reply to comment #2) > (From update of attachment 191057 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=191057&action=review > > > Source/WebCore/ChangeLog:14 > > + I confimed that exactly the same code is generated for .all getter > > + and setter. > > Really! Wow, I had no idea. Do all Replaceable attributes call ForceSet? Yes. All non-custom replaceable setters call info.This()->ForceSet(). 'info.This()->' makes sense because replaceable attributes have to be set on DOM instances (not prototype objects). On the other hand, I have no idea why we need to call ForceSet() instead of Set().
Note You need to log in before you can comment on or make changes to this bug.