WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
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
Details
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
Details
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
Details
Patch
(36.73 KB, patch)
2017-07-23 19:42 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
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
Details
Patch
(36.67 KB, patch)
2017-07-23 21:17 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(40.53 KB, patch)
2017-07-24 13:30 PDT
,
Sam Weinig
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2017-07-23 17:59:58 PDT
Comment hidden (obsolete)
Created
attachment 316246
[details]
Patch
Build Bot
Comment 2
2017-07-23 19:04:15 PDT
Comment hidden (obsolete)
Comment on
attachment 316246
[details]
Patch
Attachment 316246
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/4175695
Number of test failures exceeded the failure limit.
Build Bot
Comment 3
2017-07-23 19:04:17 PDT
Comment hidden (obsolete)
Created
attachment 316248
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4
2017-07-23 19:10:59 PDT
Comment hidden (obsolete)
Comment on
attachment 316246
[details]
Patch
Attachment 316246
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4175699
Number of test failures exceeded the failure limit.
Build Bot
Comment 5
2017-07-23 19:11:00 PDT
Comment hidden (obsolete)
Created
attachment 316249
[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6
2017-07-23 19:29:04 PDT
Comment hidden (obsolete)
Comment on
attachment 316246
[details]
Patch
Attachment 316246
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/4175707
Number of test failures exceeded the failure limit.
Build Bot
Comment 7
2017-07-23 19:29:06 PDT
Comment hidden (obsolete)
Created
attachment 316251
[details]
Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Sam Weinig
Comment 8
2017-07-23 19:42:38 PDT
Comment hidden (obsolete)
Created
attachment 316253
[details]
Patch
Build Bot
Comment 9
2017-07-23 20:48:29 PDT
Comment hidden (obsolete)
Comment on
attachment 316253
[details]
Patch
Attachment 316253
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/4176091
Number of test failures exceeded the failure limit.
Build Bot
Comment 10
2017-07-23 20:48:30 PDT
Comment hidden (obsolete)
Created
attachment 316259
[details]
Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Sam Weinig
Comment 11
2017-07-23 21:17:57 PDT
Created
attachment 316262
[details]
Patch
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
Created
attachment 316314
[details]
Patch
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
Committed
r219873
: <
http://trac.webkit.org/changeset/219873
>
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