JS IDL2K better callbacks support + bugfixes according to review
This commit is contained in:
committed by
Sergey Mashkov
parent
a11e0a84b5
commit
0ce1edd417
@@ -93,7 +93,7 @@ partial interface CSSStyleDeclaration {
|
||||
attribute String flexGrow;
|
||||
attribute String flexShrink;
|
||||
attribute String flexWrap;
|
||||
attribute String float;
|
||||
attribute String cssFloat;
|
||||
attribute String font;
|
||||
attribute String fontFamily;
|
||||
attribute String fontFeatureSettings;
|
||||
|
||||
@@ -5100,4 +5100,10 @@ dictionary EditingInputEventInit : EventInit {
|
||||
DOMString command;
|
||||
DOMString value;
|
||||
};
|
||||
partial interface Window {
|
||||
long requestAnimationFrame(FrameRequestCallback callback);
|
||||
void cancelAnimationFrame(long handle);
|
||||
};
|
||||
|
||||
callback FrameRequestCallback = void (DOMHighResTimeStamp time);
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace org.w3c.time;
|
||||
|
||||
|
||||
typedef double DOMHighResTimeStamp;
|
||||
partial interface Performance {
|
||||
DOMHighResTimeStamp now();
|
||||
};
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace org.w3c.webidl;
|
||||
|
||||
/** written by WebIDL spec */
|
||||
|
||||
typedef unsigned long long DOMTimeStamp;
|
||||
callback Function = any (any... arguments);
|
||||
callback VoidFunction = void ();
|
||||
Reference in New Issue
Block a user