Changeset 207302 in webkit
- Timestamp:
- Oct 13, 2016 12:26:19 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r207301 r207302 1 2016-10-13 Chris Dumez <cdumez@apple.com> 2 3 Rename [ConstructorTemplate=*] to [LegacyConstructorTemplate=*] 4 https://bugs.webkit.org/show_bug.cgi?id=163390 5 6 Reviewed by Darin Adler. 7 8 Rename [ConstructorTemplate=*] to [LegacyConstructorTemplate=*] as the 9 modern way of doing this is to use a constructor that takes in a 10 dictionary. I am working on getting rid of this extended attribute 11 entirely but the remaining uses require better support for union types. 12 13 * Modules/applepay/ApplePayValidateMerchantEvent.idl: 14 * Modules/indexeddb/IDBVersionChangeEvent.idl: 15 * Modules/mediastream/RTCTrackEvent.idl: 16 * bindings/scripts/CodeGenerator.pm: 17 (IsConstructorTemplate): 18 * bindings/scripts/CodeGeneratorJS.pm: 19 (GenerateConstructorDefinition): 20 (IsConstructable): 21 * bindings/scripts/IDLAttributes.txt: 22 * dom/Event.idl: 23 * dom/ProgressEvent.idl: 24 * dom/UIEvent.idl: 25 * html/track/TrackEvent.idl: 26 1 27 2016-10-13 Ryan Haddad <ryanhaddad@apple.com> 2 28 -
trunk/Source/WebCore/Modules/applepay/ApplePayValidateMerchantEvent.idl
r202309 r207302 28 28 NoInterfaceObject, 29 29 ] interface ApplePayValidateMerchantEvent : Event { 30 [InitializedByEventConstructor]readonly attribute DOMString validationURL;30 readonly attribute DOMString validationURL; 31 31 }; -
trunk/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.idl
r207058 r207302 30 30 Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict), 31 31 ] interface IDBVersionChangeEvent : Event { 32 [InitializedByEventConstructor]readonly attribute unsigned long long oldVersion;33 [InitializedByEventConstructor]readonly attribute unsigned long long? newVersion;32 readonly attribute unsigned long long oldVersion; 33 readonly attribute unsigned long long? newVersion; 34 34 }; 35 35 -
trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.idl
r207175 r207302 33 33 Constructor(DOMString type, optional RTCTrackEventInit eventInitDict), 34 34 ] interface RTCTrackEvent : Event { 35 [InitializedByEventConstructor]readonly attribute RTCRtpReceiver? receiver;36 [InitializedByEventConstructor]readonly attribute MediaStreamTrack? track;37 [InitializedByEventConstructor]readonly attribute sequence<MediaStream> streams;38 [InitializedByEventConstructor]readonly attribute RTCRtpTransceiver? transceiver;35 readonly attribute RTCRtpReceiver? receiver; 36 readonly attribute MediaStreamTrack? track; 37 readonly attribute sequence<MediaStream> streams; 38 readonly attribute RTCRtpTransceiver? transceiver; 39 39 }; 40 40 -
trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm
r207279 r207302 386 386 my $template = shift; 387 387 388 return $interface->extendedAttributes->{" ConstructorTemplate"} && $interface->extendedAttributes->{"ConstructorTemplate"} eq $template;388 return $interface->extendedAttributes->{"LegacyConstructorTemplate"} && $interface->extendedAttributes->{"LegacyConstructorTemplate"} eq $template; 389 389 } 390 390 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r207279 r207302 5728 5728 for (my $index = 0; $index < @{$interface->attributes}; $index++) { 5729 5729 my $attribute = @{$interface->attributes}[$index]; 5730 if ($attribute->signature->extendedAttributes->{ InitializedByEventConstructor}) {5730 if ($attribute->signature->extendedAttributes->{LegacyInitializedByEventConstructor}) { 5731 5731 my $attributeName = $attribute->signature->name; 5732 5732 my $attributeImplName = $attribute->signature->extendedAttributes->{ImplementedAs} || $attributeName; … … 5983 5983 || $interface->extendedAttributes->{Constructor} 5984 5984 || $interface->extendedAttributes->{NamedConstructor} 5985 || $interface->extendedAttributes->{ ConstructorTemplate}5985 || $interface->extendedAttributes->{LegacyConstructorTemplate} 5986 5986 || $interface->extendedAttributes->{JSBuiltinConstructor}; 5987 5987 } -
trunk/Source/WebCore/bindings/scripts/IDLAttributes.txt
r207279 r207302 35 35 ConstructorMayThrowException 36 36 ConstructorMayThrowLegacyException 37 ConstructorTemplate=Event|TypedArray38 37 Custom 39 38 CustomCall … … 78 77 ImplementationReturnType=* 79 78 ImplicitThis 80 InitializedByEventConstructor81 79 InterfaceName=* 82 80 IsWeakCallback … … 95 93 JSGenerateToNativeObject 96 94 JSLegacyParent=* 95 LegacyConstructorTemplate=Event 96 LegacyInitializedByEventConstructor 97 97 LenientThis 98 98 MasqueradesAsUndefined -
trunk/Source/WebCore/dom/Event.idl
r206963 r207302 20 20 21 21 [ 22 ConstructorTemplate=Event,22 LegacyConstructorTemplate=Event, 23 23 CustomToJSObject, 24 24 ExportToWrappedFunction, … … 52 52 readonly attribute EventTarget currentTarget; 53 53 readonly attribute unsigned short eventPhase; 54 [ InitializedByEventConstructor] readonly attribute boolean bubbles;55 [ InitializedByEventConstructor] readonly attribute boolean cancelable;56 [ InitializedByEventConstructor, EnabledAtRuntime=ShadowDOM] readonly attribute boolean composed;54 [LegacyInitializedByEventConstructor] readonly attribute boolean bubbles; 55 [LegacyInitializedByEventConstructor] readonly attribute boolean cancelable; 56 [LegacyInitializedByEventConstructor, EnabledAtRuntime=ShadowDOM] readonly attribute boolean composed; 57 57 readonly attribute DOMTimeStamp timeStamp; 58 58 -
trunk/Source/WebCore/dom/ProgressEvent.idl
r207019 r207302 28 28 Exposed=(Window,Worker), 29 29 ] interface ProgressEvent : Event { 30 [InitializedByEventConstructor]readonly attribute boolean lengthComputable;31 [InitializedByEventConstructor]readonly attribute unsigned long long loaded;32 [InitializedByEventConstructor]readonly attribute unsigned long long total;30 readonly attribute boolean lengthComputable; 31 readonly attribute unsigned long long loaded; 32 readonly attribute unsigned long long total; 33 33 }; 34 34 -
trunk/Source/WebCore/dom/UIEvent.idl
r207279 r207302 19 19 20 20 [ 21 ConstructorTemplate=Event,21 LegacyConstructorTemplate=Event, 22 22 ] interface UIEvent : Event { 23 [ InitializedByEventConstructor] readonly attribute DOMWindow view;24 [ InitializedByEventConstructor] readonly attribute long detail;23 [LegacyInitializedByEventConstructor] readonly attribute DOMWindow view; 24 [LegacyInitializedByEventConstructor] readonly attribute long detail; 25 25 26 26 // FIXME: Using "undefined" as default parameter value is wrong. -
trunk/Source/WebCore/html/track/TrackEvent.idl
r165676 r207302 26 26 [ 27 27 Conditional=VIDEO_TRACK, 28 ConstructorTemplate=Event28 LegacyConstructorTemplate=Event 29 29 ] interface TrackEvent : Event { 30 [ InitializedByEventConstructor, CustomGetter] readonly attribute object track;30 [LegacyInitializedByEventConstructor, CustomGetter] readonly attribute object track; 31 31 }; 32 32
Note: See TracChangeset
for help on using the changeset viewer.