aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Prevent unused result warning in codegen. Always expect success for now.Glenn Watson2014-05-051-1/+1
|
* Address review comments.Josh Matthews2014-05-031-37/+29
|
* Make dictionaries contain Root<T> values instead of JS<T>, ensuring that ↵Josh Matthews2014-05-031-5/+10
| | | | they will not be collected while the dictionary is alive.
* Address review comments.Josh Matthews2014-05-031-19/+3
|
* Remove all root collections.Josh Matthews2014-05-031-20/+18
|
* s/Unrooted/Temporary/gJosh Matthews2014-05-031-3/+3
|
* Remove abstract_self.Josh Matthews2014-05-031-18/+0
|
* Move WebIDL methods to traits implemented by JSRef types.Josh Matthews2014-05-031-23/+48
|
* Remove JS::get/get_mut to enforce sound rooting practices.Josh Matthews2014-05-031-25/+4
|
* Implement safe rooting strategy via Unrooted, Root, JSRef, and JS.Josh Matthews2014-05-031-5/+41
|
* Turn on GC all the time. Fix rooting errors during parsing and storing ↵Josh Matthews2014-05-031-30/+74
| | | | timers. Fix borrow errors during tracing.
* auto merge of #2295 : Ms2ger/servo/JSCLASS_DOM_GLOBAL, r=jdmbors-servo2014-05-031-6/+4
|\ | | | | | | | | It seems unlikely that this will ever be hit, but potentially hard to figure out if it ever is hit.
| * Add JSCLASS_DOM_GLOBAL to DOM global classes, and assert it is used.Ms2ger2014-05-031-6/+4
| | | | | | | | | | It seems unlikely that this will ever be hit, but potentially hard to figure out if it ever is hit.
* | Webidl and basic implementation of XHR objectManish Goregaokar2014-05-031-16/+6
|/
* auto merge of #2290 : saneyuki/servo/export, r=jdmbors-servo2014-05-011-2/+3
|\ | | | | | | | | | | | | - Fix #2128 - Take over from #2220 I didn't change `InterfaceTypes.rs` to `type.rs` because `type` is very common name which might be troublesome.
| * Remove the 'pub use self::BindingDeclarations::*;' export.Tetsuharu OHZEKI2014-05-011-2/+3
| |
* | Implement WebIDL codegen for ByteString.Ms2ger2014-05-011-1/+25
| |
* | Change some isString() checks in the WebIDL codegen to isDOMString() checks.Ms2ger2014-05-011-2/+2
|/
* Merge UnionConversions() into UnionTypes().Ms2ger2014-04-291-26/+2
| | | | | It's not very useful to have one but not the other, so it makes more sense to deal with them together.
* Reuse getTypes in UnionConversions().Ms2ger2014-04-291-13/+2
| | | | | This should be equivalent, except that the removed code ignores return values (which we currently don't support).
* Remove C++-specific union codegen code.Ms2ger2014-04-291-56/+4
|
* auto merge of #2194 : Ms2ger/servo/typeerror-2, r=jdmbors-servo2014-04-281-3/+4
|\
| * Use more rustic names for ThrowTypeError and infrastructure.Ms2ger2014-04-281-2/+2
| |
| * Move ThrowTypeError to error.rs.Ms2ger2014-04-281-1/+1
| |
| * Throw a TypeError when too few arguments are passed.Ms2ger2014-04-281-3/+4
| |
* | auto merge of #2244 : Ms2ger/servo/optional-rewrite, r=jdmbors-servo2014-04-281-49/+36
|\ \ | |/ |/| | | This moves all handling of `isOptional` (except `type.isCallback()`, which I believe @jdm is rewriting in #2204) into one place.
| * Use handleOptional for callback interface conversion.Ms2ger2014-04-281-1/+1
| |
| * Use handleOptional for dictionary conversion.Ms2ger2014-04-281-1/+1
| | | | | | | | | | This does not have any effect, as isOptional is always False for dictionaries. This change is made only for consistency.
| * Use handleOptional for interface conversion.Ms2ger2014-04-271-2/+2
| |
| * Move optional/nullable handling out of CastableObjectUnwrapper.Ms2ger2014-04-271-15/+11
| | | | | | | | | | | | This puts the code that wraps the type in Option<> and the code that wraps the expression in Some() into the same if block, which should clarify the code.
| * Use handleOptional for the enumeration conversion.Ms2ger2014-04-261-1/+1
| |
| * Use handleOptional for the DOMString conversion.Ms2ger2014-04-261-13/+4
| |
| * Use handleOptional for the union conversion.Ms2ger2014-04-261-1/+1
| | | | | | | | Note that unions didn't handle optional arguments correctly before.
| * Use handleOptional for the 'any' conversion.Ms2ger2014-04-261-7/+2
| |
| * Implement a cleaner way of dealing with optional arguments in codegen and ↵Ms2ger2014-04-261-8/+13
| | | | | | | | | | | | | | use it for primitive types. This puts the Some constructor outside the match, making the actual generating code independent of the optionality of the argument.
* | auto merge of #2237 : Ms2ger/servo/union-fromjsvalconvertible, r=jdmbors-servo2014-04-281-18/+19
|\| | | | | | | With bonus codegen tests.
| * Use FromJSValConvertible's nullable conversion code.Ms2ger2014-04-261-10/+2
| |
| * Implement FromJSValConvertible for union types.Ms2ger2014-04-261-9/+18
| |
* | This batch of changes upgrades Servo to work with the Rust upgrade as ofLars Bergstrom2014-04-271-5/+5
|/ | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries.
* Remove the holderType return value of getJSToNativeConversionTemplate.Ms2ger2014-04-251-46/+15
| | | | It is always None.
* auto merge of #2228 : Ms2ger/servo/object-unwrapping-expressionify, r=jdmbors-servo2014-04-251-73/+45
|\
| * Rewrite dictionary codegen to initialize members directly into the struct.Ms2ger2014-04-251-35/+14
| |
| * Remove the 'retval' local variable from union TryConvertTo methods.Ms2ger2014-04-251-4/+1
| |
| * Move responsibility for assigning to ${declName} out of ↵Ms2ger2014-04-251-18/+20
| | | | | | | | | | | | getJSToNativeConversionTemplate. This commit does not make any change to the generated code.
| * Rewrite the enumeration unwrapping to return an expression.Ms2ger2014-04-251-3/+3
| |
| * Rewrite the primitive unwrapping to return an expression.Ms2ger2014-04-251-5/+5
| |
| * Rewrite the any unwrapping to return an expression.Ms2ger2014-04-251-5/+2
| |
| * Rewrite the DOMString unwrapping to return an expression.Ms2ger2014-04-251-6/+5
| |
| * Rewrite the union unwrapping to return an expression.Ms2ger2014-04-251-5/+5
| |
| * Rewrite the interface unwrapping to return an expression.Ms2ger2014-04-251-9/+7
| |