RESOLVED FIXED Bug 174766
[WebIDL] Add support for generating timer bindings
https://bugs.webkit.org/show_bug.cgi?id=174766
Summary [WebIDL] Add support for generating timer bindings
Sam Weinig
Reported 2017-07-23 17:42:22 PDT
[WebIDL] Add support for generating timer bindings
Attachments
Patch (36.74 KB, patch)
2017-07-23 17:59 PDT, Sam Weinig
no flags
Archive of layout-test-results from ews102 for mac-elcapitan (1.28 MB, application/zip)
2017-07-23 19:04 PDT, Build Bot
no flags
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (1.36 MB, application/zip)
2017-07-23 19:11 PDT, Build Bot
no flags
Archive of layout-test-results from ews116 for mac-elcapitan (1.38 MB, application/zip)
2017-07-23 19:29 PDT, Build Bot
no flags
Patch (36.73 KB, patch)
2017-07-23 19:42 PDT, Sam Weinig
no flags
Archive of layout-test-results from ews100 for mac-elcapitan (1.29 MB, application/zip)
2017-07-23 20:48 PDT, Build Bot
no flags
Patch (36.67 KB, patch)
2017-07-23 21:17 PDT, Sam Weinig
no flags
Patch (40.53 KB, patch)
2017-07-24 13:30 PDT, Sam Weinig
darin: review+
Sam Weinig
Comment 1 2017-07-23 17:59:58 PDT Comment hidden (obsolete)
Build Bot
Comment 2 2017-07-23 19:04:15 PDT Comment hidden (obsolete)
Build Bot
Comment 3 2017-07-23 19:04:17 PDT Comment hidden (obsolete)
Build Bot
Comment 4 2017-07-23 19:10:59 PDT Comment hidden (obsolete)
Build Bot
Comment 5 2017-07-23 19:11:00 PDT Comment hidden (obsolete)
Build Bot
Comment 6 2017-07-23 19:29:04 PDT Comment hidden (obsolete)
Build Bot
Comment 7 2017-07-23 19:29:06 PDT Comment hidden (obsolete)
Sam Weinig
Comment 8 2017-07-23 19:42:38 PDT Comment hidden (obsolete)
Build Bot
Comment 9 2017-07-23 20:48:29 PDT Comment hidden (obsolete)
Build Bot
Comment 10 2017-07-23 20:48:30 PDT Comment hidden (obsolete)
Sam Weinig
Comment 11 2017-07-23 21:17:57 PDT
Sam Weinig
Comment 12 2017-07-23 21:39:12 PDT
Looks like I need to make JSC::Strong move aware.
Sam Weinig
Comment 13 2017-07-24 13:30:18 PDT
Darin Adler
Comment 14 2017-07-24 16:01:27 PDT
Comment on attachment 316314 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=316314&action=review I took the liberty of looking this over. > Source/WebCore/bindings/js/JSDOMConvertInterface.h:77 > + return std::optional<Item>(*result); Surprised that you used parentheses here instead of curly braces. Oh, I see now that this is moved code, not new code, but I am still l guessing it’s code you wrote. > Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h:37 > +template<> struct Converter<IDLScheduledAction> : DefaultConverter<IDLScheduledAction> { > + > + static std::unique_ptr<ScheduledAction> convert(JSC::ExecState& state, JSC::JSValue value, JSDOMGlobalObject& globalObject) I’d omit this stray blank line. > Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h:43 > + if (JSC::getCallData(value, callData) == JSC::CallType::None) { Argument dependent lookup means you should not need the JSC:: on the getCallData call here. > Source/WebCore/bindings/js/ScheduledAction.h:40 > + WTF_MAKE_NONCOPYABLE(ScheduledAction); WTF_MAKE_FAST_ALLOCATED; I don’t think we need WTF_MAKE_NONCOPYABLE because this has a Ref as a member. > Source/WebCore/bindings/js/ScheduledAction.h:51 > + enum Type { > + Code, > + Function > }; Maybe do this as a one-liner instead of vertical?
Sam Weinig
Comment 15 2017-07-24 16:46:50 PDT
(In reply to Darin Adler from comment #14) > Comment on attachment 316314 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=316314&action=review > > I took the liberty of looking this over. > > > Source/WebCore/bindings/js/JSDOMConvertInterface.h:77 > > + return std::optional<Item>(*result); > > Surprised that you used parentheses here instead of curly braces. > > Oh, I see now that this is moved code, not new code, but I am still l > guessing it’s code you wrote. > > > Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h:37 > > +template<> struct Converter<IDLScheduledAction> : DefaultConverter<IDLScheduledAction> { > > + > > + static std::unique_ptr<ScheduledAction> convert(JSC::ExecState& state, JSC::JSValue value, JSDOMGlobalObject& globalObject) > > I’d omit this stray blank line. > > > Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h:43 > > + if (JSC::getCallData(value, callData) == JSC::CallType::None) { > > Argument dependent lookup means you should not need the JSC:: on the > getCallData call here. > > > Source/WebCore/bindings/js/ScheduledAction.h:40 > > + WTF_MAKE_NONCOPYABLE(ScheduledAction); WTF_MAKE_FAST_ALLOCATED; > > I don’t think we need WTF_MAKE_NONCOPYABLE because this has a Ref as a > member. > > > Source/WebCore/bindings/js/ScheduledAction.h:51 > > + enum Type { > > + Code, > > + Function > > }; > > Maybe do this as a one-liner instead of vertical? Took all the suggestions.
Sam Weinig
Comment 16 2017-07-25 11:02:58 PDT
Note You need to log in before you can comment on or make changes to this bug.