aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
Commit message (Collapse)AuthorAgeFilesLines
* Implement the MozMap type.Ms2ger2016-09-211-7/+24
| | | | Fixes #13144.
* Introduce wrapInNativeContainerType.Ms2ger2016-09-211-3/+12
|
* Use innerContainerType in getConversionConfigForType.Ms2ger2016-09-211-1/+1
|
* Rename innerSequenceType to innerContainerType.Ms2ger2016-09-211-4/+4
|
* Handle unsupported types better in getUnionTypeTemplateVars.Ms2ger2016-09-211-13/+1
|
* Improve handling of ConversionResult::Failure in unions.Ms2ger2016-09-211-21/+19
|
* Improve jsid_to_str's name and documentation.Ms2ger2016-09-211-2/+2
|
* Auto merge of #13185 - nox:namespaces, r=jdm,Ms2gerbors-servo2016-09-102-30/+77
|\ | | | | | | | | | | | | | | Make console a namespace (fixes #13010) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13185) <!-- Reviewable:end -->
| * Implement WebIDL namespacesAnthony Ramine2016-09-082-28/+75
| |
| * Fix descriptor argument in CGCallGenerator.__init__Anthony Ramine2016-09-071-3/+3
| | | | | | | | It's a descriptor, not a descriptor provider.
* | Auto merge of #13201 - KiChjang:codegen-typedefs, r=noxbors-servo2016-09-092-4/+15
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Properly generate typedef identities in unions Fixes #10605. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13201) <!-- Reviewable:end -->
| * Properly generate typedef identities in unionsKeith Yeung2016-09-072-4/+15
| |
* | Extract mutability out of Reflectable trait.Josh Matthews2016-09-071-0/+1
|/
* Auto merge of #13183 - nox:cleanup-interface, r=Ms2gerbors-servo2016-09-061-18/+14
|\ | | | | | | | | | | | | | | Clean up stuff in bindings::interface <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13183) <!-- Reviewable:end -->
| * Fix case of InterfaceObjectClass in codegenAnthony Ramine2016-09-061-2/+2
| |
| * Remove NonNullJSNativeAnthony Ramine2016-09-061-3/+3
| |
| * Move WebIDL constants machinery to bindings::constantAnthony Ramine2016-09-061-9/+8
| |
| * Simplify InterfaceConstructorBehaviorAnthony Ramine2016-09-061-4/+1
| |
* | Add missing IsCallable checks.Ms2ger2016-09-061-2/+12
|/
* Use Option<T> to return from gettersAnthony Ramine2016-08-301-10/+9
| | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-301-1/+5
|
* Convert imports in generate_imports into one per line, so that it can easily ↵tp6vup542016-08-271-71/+195
| | | | add new ones with alphabetical order.
* Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-261-10/+8
|
* Auto merge of #13044 - nox:webidl, r=Ms2gerbors-servo2016-08-267-46/+73
|\ | | | | | | | | | | | | | | Update the WebIDL parser <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13044) <!-- Reviewable:end -->
| * Update the WebIDL parserAnthony Ramine2016-08-264-46/+31
| |
| * Restore abstract.patch which was mistakenly removedAnthony Ramine2016-08-261-0/+12
| |
| * Hoist 7fd65affabd9ab49b254fefce968a9eafabf1fbf as its own patchAnthony Ramine2016-08-262-0/+30
| |
* | Implement [Replaceable] (fixes #13033)Anthony Ramine2016-08-261-8/+30
|/
* Pass the receiver to get_property_on_prototype (fixes #11600)Anthony Ramine2016-08-251-1/+1
|
* Make has_property_on_prototype fallibleAnthony Ramine2016-08-251-10/+25
|
* Call JS_SetImmutablePrototype for prototypes of globals (fixes #13023)Anthony Ramine2016-08-251-21/+24
|
* Define interface members on the global object directly (fixes #4593)Anthony Ramine2016-08-251-9/+37
|
* Pass a MutableHandleObject to create_global_objectAnthony Ramine2016-08-251-6/+7
|
* Make create_global_object take a &'static ClassAnthony Ramine2016-08-251-1/+1
|
* Rename utils::create_dom_object to interface::create_global_objectAnthony Ramine2016-08-251-15/+15
|
* Split global logic out of CGWrapMethodAnthony Ramine2016-08-251-25/+40
|
* Auto merge of #12819 - jdm:iterable2, r=noxbors-servo2016-08-245-147/+440
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support pair and value iterable WebIDL bindings The actual iterator implementation and JSAPI calls related to setting up the interface are ported directly from Gecko's Codegen.py, IterableIterator.h, and IterableIterator.webidl. The changes to support multiple interfaces in one file are required because the internal iterator interface the parser generates gets associated with the original interface's WebIDL file. It seemed like a good time to address #571 in that case. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12628 and fix #571. - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12819) <!-- Reviewable:end -->
| * Use named arguments for CGImports.Josh Matthews2016-08-241-3/+10
| |
| * Set up the iterator prototype as the prototype of iterator interfaces, and ↵Josh Matthews2016-08-241-4/+55
| | | | | | | | alias forEach to the entries method.
| * Implement pair iterators in WebIDL interfaces.Josh Matthews2016-08-242-13/+104
| |
| * Support value iterators in WebIDL interfaces.Josh Matthews2016-08-241-0/+40
| |
| * Support multiple WebIDL interfaces being generated in the same output ↵Josh Matthews2016-08-245-135/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | binding file. Each interface gets its own module named ${Interface}Binding. Structs, enums, and callbacks continue to use the root module of the binding file. If there is only one interface in the file, we generate reexports for several public APIs and types so that existing DOM implementations don't need any modifications. When multiple interfaces exist, the reexported names get the interface name prepended (eg. FooWrap instead of Wrap). As part of this work, stop glob-importing all DOM types in every generated binding and start generating more targeted lists of relevant types based on the methods, members, etc. of WebIDL types that are in use.
* | Reformat from_jsval implementation for unions.Ms2ger2016-08-241-1/+2
|/
* Auto merge of #12954 - GuillaumeGomez:dictionary_error, r=noxbors-servo2016-08-241-32/+72
|\ | | | | | | | | | | | | | | Update rust-mozjs <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12954) <!-- Reviewable:end -->
| * Update rust-mozjs dependencyGuillaume Gomez2016-08-241-32/+72
| |
* | Use JS_SplicePrototype to set the right proto on the global, instead of ↵Boris Zbarsky2016-08-241-2/+2
|/ | | | JS_SetPrototype, since the latter will permanently deoptimize it.
* Native MSVC windows build, convert to cmakeVladimir Vukicevic2016-08-172-1/+67
|
* bindings generator: support default ByteString values in dictionaryMalisa Smith2016-08-102-3/+27
|
* Update SpiderMonkey to m-c bcf4ff0c3eef.Ms2ger2016-07-281-58/+26
| | | | | | This currently breaks Servo on Android, because there are a number of interdependent changes that cannot easily land serially in a way that keeps it working throughout. We expect to fix this in the near future.
* Union types now allow ByteStringMalisa Smith2016-07-211-1/+4
|