aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdmbors-servo2016-03-041-3/+4
|\ | | | | | | | | | | | | | | | | | | Fixed compile error in generated code, when webidl constructors have same number of args One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786) <!-- Reviewable:end -->
| * Fixed compile error in generated code, when webidl constructors have same ↵Peter2016-03-031-3/+4
| | | | | | | | | | | | number of args Edited test webidl to show issue, and fix
* | Stop generating a parser.out file in the source.Ms2ger2016-03-013-1/+15
| |
* | Do not generate RegisterBindings::Register anymoreAnthony Ramine2016-02-251-20/+0
| |
* | Lazily define interface objects on globals (fixes #6419)Anthony Ramine2016-02-252-10/+39
| |
* | Cache legacy callback interface objects in proto_or_icache_arrayAnthony Ramine2016-02-252-12/+24
| | | | | | | | | | We need them to be cached to not instantiate them multiple times with lazy initialisation.
* | Lazily-define standard ECMAScript classesAnthony Ramine2016-02-251-2/+6
| |
* | Always implement getOwnEnumerablePropertyKeysAnthony Ramine2016-02-231-3/+3
| | | | | | | | | | | | According to JSProxy.h, without this the default implementation calls ownPropertyKeys and filters out the unenumerable properties. We know when such things exist so we don't need to do that.
* | Support [LegacyUnenumerableNamedProperties]Anthony Ramine2016-02-231-10/+72
| |
* | Fix a typo in CGDOMJSProxyHandler_getOwnPropertyDescriptorAnthony Ramine2016-02-231-1/+1
| | | | | | | | Named properties are read-only if there is no named setter.
* | Make fill_property_descriptor take a flags argumentAnthony Ramine2016-02-231-4/+8
| |
* | Implement [LegacyUnenumerableNamedProperties] in the WebIDL parserAnthony Ramine2016-02-233-1/+34
| | | | | | | | http://github.com/heycam/webidl/issues/82
* | Just pass global to CreateInterfaceObjectsAnthony Ramine2016-02-231-22/+13
| | | | | | | | The receiver parameter is useless here.
* | Clean up CGDOMJSClassAnthony Ramine2016-02-231-25/+24
|/
* Auto merge of #9633 - GuillaumeGomez:has_instance, r=noxbors-servo2016-02-191-28/+5
|\ | | | | | | | | | | | | | | | | | | All interface objects now share the same hasInstance r? @nox <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9633) <!-- Reviewable:end -->
| * All interface objects now share the same hasInstanceGuillaume Gomez2016-02-171-28/+5
| |
* | Fixing issue with uniontypes not created with primitive typeszakorgyula2016-02-181-18/+43
| | | | | | | | refer to #9531
* | Derive the Debug trait for WebIDL-generated enums.Ms2ger2016-02-171-1/+1
| |
* | Support [ExceptionClass]Anthony Ramine2016-02-171-7/+9
|/ | | | Use it on DOMException.
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-4/+4
|
* Add mach test-webidl commandShing Lyu2016-01-294-10/+28
|
* Auto merge of #9419 - psdh:includeTypedef, r=noxbors-servo2016-01-262-0/+16
|\ | | | | | | | | | | | | | | | | | | generate typedefs in CodegenRust. fixes #9384 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9419) <!-- Reviewable:end -->
| * generate typedefs in CodegenRustPrabhjyot Singh Sodhi2016-01-262-0/+16
| |
* | For WebIDL interfaces without constant members, do not generate a 'Constant' ↵Michael Rosenberg2016-01-261-3/+6
| | | | | | | | module
* | Move ConstantSpec, NonNullJSNative and define_constants from utils to interfacenxnfufunezn2016-01-241-3/+4
|/
* update to latest testsPrabhjyot Singh Sodhi2016-01-218-29/+156
|
* webidl: Refactor isSequence in getJSToNativeConversionInfoEmilio Cobos Álvarez2016-01-151-2/+5
| | | | | | | | That way it does not depend on the return value for the same type. This hopefully makes the code more clear, and avoids errors if something changes in the future (for example, we could want to pass slices as sequence arguments).
* webidl: Implement sequences in unionsEmilio Cobos Álvarez2016-01-151-20/+30
| | | | Unblocks #9053
* codegen: Implement WebIDL sequence argumentsEmilio Cobos Álvarez2016-01-121-1/+10
|
* codegen: Move conversion behaviour to a common functionEmilio Cobos Álvarez2016-01-121-24/+32
|
* Fix prototypes of interface objects (fixes #2665)Anthony Ramine2016-01-121-54/+65
|
* Describe non-callback interface objects with JSClass structuresAnthony Ramine2016-01-121-30/+66
| | | | JS_NewFunction doesn't allow us to set the prototype of the interface objects.
* Bump rust-mozjs to 4d384eb830d8d53c1268e8ce37135ace21e41721Anthony Ramine2016-01-121-1/+2
|
* Introduce Descriptor.prototypeDepthAnthony Ramine2016-01-122-2/+3
|
* Use the object prototype for callback interface objectsAnthony Ramine2016-01-121-1/+1
| | | | window.NodeFilter's prototype should be the object prototype.
* Refactor prototype initialisationAnthony Ramine2016-01-121-110/+93
| | | | | | | | | | | | | The function do_create_interface_objects is removed in favour of 4 functions: create_callback_interface_object, create_interface_prototype_object, create_noncallback_interface_object and create_named_constructors. While this increases the amount of codegen'd code, this greatly improves the readability of the code involved in this part of DOM, instead of having one function doing 4 different things. We can always find a more adequate abstraction later. NativeProperties and everything related to the interface objects have been removed from the utils module.
* Remove NativePropertyHooksAnthony Ramine2016-01-121-32/+2
|
* Auto merge of #9200 - frewsxcv:unnecessary-sorting-functions, r=noxbors-servo2016-01-111-18/+4
|\ | | | | | | | | | | | | | | Remove unneeded dict sorting functions in CodegenRust.py <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9200) <!-- Reviewable:end -->
| * Remove unneeded dict sorting functions in CodegenRust.pyCorey Farwell2016-01-101-18/+4
| |
* | Remove unused command-line Python codegen argumentsCorey Farwell2016-01-072-4/+0
|/
* Generate PartialEq automaticallyGuillaume Gomez2016-01-031-0/+6
|
* Auto merge of #8506 - nox:finish-ranges, r=dzbarskybors-servo2015-12-261-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Properly propagate changes when range or trees are mutated Does the same thing as #6817, but storing Range instances directly in their start and end containers. Cc @dzbarsky <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506) <!-- Reviewable:end -->
| * Properly propagate changes when range or trees are mutatedAnthony Ramine2015-12-251-0/+4
| |
* | Auto merge of #8993 - nox:small-codegen-slimming, r=Ms2gerbors-servo2015-12-182-4/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Slightly reduce the output of codegen Interfaces which we know are never instantiated can generate less code. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8993) <!-- Reviewable:end -->
| * | Link [Abstract] to the existing concrete descriptor fieldAnthony Ramine2015-12-162-2/+3
| | | | | | | | | | | | | | | | | | This makes codegen not emit anything strictly related to the interface which are never used in the case of abstract interfaces, such as the Wrap method or the DOMJSClass.
| * | Do not export GetProtoObject if the interface has no descendantsAnthony Ramine2015-12-161-2/+2
| | |
* | | Auto merge of #8996 - nox:rm-empty-modules, r=frewsxcvbors-servo2015-12-162-10/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not create modules from files with nothing to codegen (fixes #8711) Fixes #8711. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8996) <!-- Reviewable:end -->
| * | | Do not create modules from files with nothing to codegen (fixes #8711)Anthony Ramine2015-12-162-10/+16
| |/ /
* | | Delete GenerateCSS2PropertiesWebIDL.pyCorey Farwell2015-12-161-25/+0
| | |
* | | Auto merge of #8055 - nox:rm-webidl-patches, r=Ms2gerbors-servo2015-12-166-364/+389
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all our patches to the WebIDL parser All the tweaks we need can just be made through Configuration.py. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8055) <!-- Reviewable:end -->