Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove utils::Prefable in favour of guard::Guard | Anthony Ramine | 2016-05-26 | 1 | -14/+15 | |
| | ||||||
* | Remove Prefable::terminator 🤖 | Anthony Ramine | 2016-05-26 | 1 | -3/+2 | |
| | ||||||
* | Simplify how Prefable arrays are passed in bindings::interface | Anthony Ramine | 2016-05-26 | 1 | -8/+3 | |
| | ||||||
* | Use itertools.groupby in generatePrefableArray | Anthony Ramine | 2016-05-26 | 1 | -26/+8 | |
| | ||||||
* | Make MemberCondition a function returning a plain string | Anthony Ramine | 2016-05-26 | 1 | -22/+11 | |
| | ||||||
* | Move DOMString back to script | Anthony Ramine | 2016-05-24 | 1 | -6/+3 | |
| | | | | This entirely removes the 'non-geckolib' feature of the util crate. | |||||
* | Remove the custom PartialEq implementations on TypeId enums | Anthony Ramine | 2016-05-17 | 1 | -3/+1 | |
| | | | | https://github.com/rust-lang/rust/pull/33593 made them useless. | |||||
* | Use JS_NewStringCopyN for the representation of interface objects | Anthony Ramine | 2016-05-16 | 1 | -4/+3 | |
| | | | | | This removes the need for the final null byte and we can make NonCallbackInterfaceObjectClass::new safe again I guess. | |||||
* | Stop using JSAutoRequest. | Ms2ger | 2016-05-13 | 1 | -3/+1 | |
| | ||||||
* | codegen: Throw a more descriptive invalid enum message | Emilio Cobos Álvarez | 2016-05-13 | 1 | -6/+6 | |
| | ||||||
* | codegen: Throw on an invalid enum value when appropiate | Emilio Cobos Álvarez | 2016-05-13 | 1 | -6/+11 | |
| | ||||||
* | codegen: Don't unconditionally set non-required dictionary attributes | Emilio Cobos Álvarez | 2016-05-13 | 1 | -5/+14 | |
| | ||||||
* | codegen: Use the non-mangled name in set_dictionary_property | Emilio Cobos Álvarez | 2016-05-12 | 1 | -1/+1 | |
| | | | | Fixes #11152 | |||||
* | Auto merge of #9890 - AgostonSzepessy:update-webidl-tests, r=nox | bors-servo | 2016-05-09 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | | | | | update.sh downloads all *.py tests from mozilla central components/script/dom/bindings/codegen/parser/update.sh downloads all *.py tests from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9890) <!-- Reviewable:end --> | |||||
| * | components/script/dom/bindings/codegen/parser/update.sh now downloads all | AgostonSzepessy | 2016-03-22 | 1 | -1/+1 | |
| | | | | | | | | | | the latest *.py tests from https://hg.mozilla.org/mozilla-central/archive/tip.tar.gz/dom/bindings/parser/tests/ | |||||
* | | Auto merge of #10756 - servo:smup, r=Ms2ger | bors-servo | 2016-05-03 | 1 | -61/+65 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | Update SpiderMonkey <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10756) <!-- Reviewable:end --> | |||||
| * | | Update SpiderMonkey | Anthony Ramine | 2016-05-03 | 1 | -61/+65 | |
| | | | ||||||
* | | | Implement hiding of interface members via Pref annotations. | Josh Matthews | 2016-05-02 | 1 | -16/+97 | |
| | | | ||||||
* | | | Start generating arrays of specs for easier implementation of preference checks. | Josh Matthews | 2016-05-02 | 1 | -6/+14 | |
| | | | ||||||
* | | | Support controlling the visibility of WebIDL interfaces via the Pref annotation. | Josh Matthews | 2016-04-29 | 1 | -4/+62 | |
|/ / | ||||||
* | | Refactor the `call` hook on non-callback interface objects (fixes #10744) | Anthony Ramine | 2016-04-25 | 1 | -12/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | It's now set through the intermediate InterfaceConstructorBehavior structure, which lets us improve the abstraction around NonCallbackInterfaceObjectClass a bit better. When the interface's constructor is supposed to always throw, the error for calling `Foo()` without new is "Illegal constructor.". when the interface actually defines an interface, the error is instead "This constructor needs to be called with `new`.". | |||||
* | | Make NonCallbackInterfaceObjectClass::new unsafe | Anthony Ramine | 2016-04-25 | 1 | -2/+3 | |
| | | ||||||
* | | Avoid generating parameter names that are Rust keywords | Keith Yeung | 2016-04-17 | 1 | -1/+8 | |
| | | ||||||
* | | remove unreachable code in codegen | Arnaud Marant | 2016-04-12 | 1 | -16/+0 | |
| | | | | | | | | code is unreachable after return, and identical to the upper block | |||||
* | | Enable dictionaries in WebIDL sequences. Fixes #10282. | Josh Matthews | 2016-03-30 | 1 | -0/+8 | |
| | | ||||||
* | | Auto merge of #10152 - jdm:9511-rebase, r=nox | bors-servo | 2016-03-24 | 1 | -2/+2 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | Fix #9511. Export webidl enums using "pub use". Change typedef codegen to export the underlying enum itself, rather than an alias. Works around https://github.com/rust-lang/rust/issues/31355 Rebase of #9691. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10152) <!-- Reviewable:end --> | |||||
| * | Fix #9511. Export webidl enums using "pub use". | Ben | 2016-03-23 | 1 | -2/+2 | |
| | | | | | | | | | | Change typedef codegen to export the underlying enum itself, rather than an alias. Works around https://github.com/rust-lang/rust/issues/31355 | |||||
* | | Make all interface objects share the same funToString | Guillaume Gomez | 2016-03-21 | 1 | -19/+4 | |
|/ | ||||||
* | Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdm | bors-servo | 2016-03-04 | 1 | -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 ↵ | Peter | 2016-03-03 | 1 | -3/+4 | |
| | | | | | | | | | | | | number of args Edited test webidl to show issue, and fix | |||||
* | | Do not generate RegisterBindings::Register anymore | Anthony Ramine | 2016-02-25 | 1 | -20/+0 | |
| | | ||||||
* | | Lazily define interface objects on globals (fixes #6419) | Anthony Ramine | 2016-02-25 | 1 | -10/+38 | |
| | | ||||||
* | | Cache legacy callback interface objects in proto_or_icache_array | Anthony Ramine | 2016-02-25 | 1 | -12/+20 | |
| | | | | | | | | | | We need them to be cached to not instantiate them multiple times with lazy initialisation. | |||||
* | | Lazily-define standard ECMAScript classes | Anthony Ramine | 2016-02-25 | 1 | -2/+6 | |
| | | ||||||
* | | Always implement getOwnEnumerablePropertyKeys | Anthony Ramine | 2016-02-23 | 1 | -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 Ramine | 2016-02-23 | 1 | -10/+72 | |
| | | ||||||
* | | Fix a typo in CGDOMJSProxyHandler_getOwnPropertyDescriptor | Anthony Ramine | 2016-02-23 | 1 | -1/+1 | |
| | | | | | | | | Named properties are read-only if there is no named setter. | |||||
* | | Make fill_property_descriptor take a flags argument | Anthony Ramine | 2016-02-23 | 1 | -4/+8 | |
| | | ||||||
* | | Just pass global to CreateInterfaceObjects | Anthony Ramine | 2016-02-23 | 1 | -22/+13 | |
| | | | | | | | | The receiver parameter is useless here. | |||||
* | | Clean up CGDOMJSClass | Anthony Ramine | 2016-02-23 | 1 | -25/+24 | |
|/ | ||||||
* | Auto merge of #9633 - GuillaumeGomez:has_instance, r=nox | bors-servo | 2016-02-19 | 1 | -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 hasInstance | Guillaume Gomez | 2016-02-17 | 1 | -28/+5 | |
| | | ||||||
* | | Fixing issue with uniontypes not created with primitive types | zakorgyula | 2016-02-18 | 1 | -18/+43 | |
| | | | | | | | | refer to #9531 | |||||
* | | Derive the Debug trait for WebIDL-generated enums. | Ms2ger | 2016-02-17 | 1 | -1/+1 | |
| | | ||||||
* | | Support [ExceptionClass] | Anthony Ramine | 2016-02-17 | 1 | -7/+9 | |
|/ | | | | Use it on DOMException. | |||||
* | Fix #9508: Beautify our union enums constructors | Alexander Lopatin | 2016-02-07 | 1 | -4/+4 | |
| | ||||||
* | Auto merge of #9419 - psdh:includeTypedef, r=nox | bors-servo | 2016-01-26 | 1 | -0/+12 | |
|\ | | | | | | | | | | | | | | | | | | | 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 CodegenRust | Prabhjyot Singh Sodhi | 2016-01-26 | 1 | -0/+12 | |
| | | ||||||
* | | For WebIDL interfaces without constant members, do not generate a 'Constant' ↵ | Michael Rosenberg | 2016-01-26 | 1 | -3/+6 | |
| | | | | | | | | module | |||||
* | | Move ConstantSpec, NonNullJSNative and define_constants from utils to interface | nxnfufunezn | 2016-01-24 | 1 | -3/+4 | |
|/ |