aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-121-1/+21
|
* Link to Servo issue instead of Gecko bugCorey Farwell2015-09-101-1/+1
|
* Auto merge of #7455 - nox:rm-unused-warnings, r=jdmbors-servo2015-08-301-23/+27
|\ | | | | | | | | | | | | | | | | | | Do not allow some warnings in codegen anymore This fixes #395. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7455) <!-- Reviewable:end -->
| * Do not allow unreachable_code in codegen anymoreAnthony Ramine2015-08-301-4/+0
| |
| * Do not allow dead_code in codegen anymoreAnthony Ramine2015-08-301-1/+0
| |
| * Do not allow unused_parens in codegen anymoreAnthony Ramine2015-08-301-4/+3
| |
| * Do not allow unused_mut in codegen anymoreAnthony Ramine2015-08-301-7/+8
| |
| * Do not allow unused_unsafe in codegen anymoreAnthony Ramine2015-08-301-7/+16
| |
* | Auto merge of #7432 - jdm:dashedprops, r=noxbors-servo2015-08-301-13/+24
|\ \ | |/ |/| | | | | | | | | | | | | | | Add dashed CSS properties in CSSStyleDeclaration <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7432) <!-- Reviewable:end -->
| * Add infrastructure for supporting dashed CSS property names on ↵Josh Matthews2015-08-281-13/+24
| | | | | | | | CSSStyleDeclaration.
* | Prefer JSTrue/JSFalse to 1/0Corey Farwell2015-08-281-9/+9
|/
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-1/+1
|
* Auto merge of #7387 - Yoric:2240-2, r=Ms2gerbors-servo2015-08-271-22/+29
|\ | | | | | | | | | | | | | | | | | | Fixes #2240 - NamedGetter and NamedSetter do not assume that the arg is named `name` I'm not totally sure about how to test this. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7387) <!-- Reviewable:end -->
| * Fixes #2240 - NamedGetter and NamedSetter do not assume that the argument is ↵David Rajchenbach-Teller2015-08-261-22/+29
| | | | | | | | named `name`
* | Auto merge of #7395 - Manishearth:doc-inherit, r=noxbors-servo2015-08-261-3/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Document InheritTypes <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7395) <!-- Reviewable:end -->
| * | Document InheritTypesManish Goregaokar2015-08-271-3/+11
| | |
* | | Auto merge of #7397 - Manishearth:doublepointer-meet-fire, r=noxbors-servo2015-08-261-13/+0
|\| | | |/ |/| | | | | | | | | | | | | | | Remove doublepointer in VirtualMethods, and from_borrowed_ref <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7397) <!-- Reviewable:end -->
| * remove to_borrowed_ref, fix ActivatableManish Goregaokar2015-08-271-8/+0
| |
| * Remove doublepointer in VirtualMethods, and from_borrowed_refManish Goregaokar2015-08-271-5/+0
| | | | | | | | | | | | | | | | | | Most of the heavy lifting done by: ``` $ ls *rs | xargs gawk -i inplace '/let .*: &&.*from_borrowed_ref/{sub("&&", "\\&");sub("_borrowed_","_");} {print $0}' $ ls *rs | xargs gawk -i inplace "/impl.*VirtualMethods/{in_vm=1; sub(/<'a>/,\"\");sub(/&'a /,\"\")} /^}\$/{in_vm=0;} in_vm{\$0=gensub(/\\*self([^.])/,\"self\\\1\",\"g\"); sub(/from_borrowed_ref/,\"from_ref\")} {print}" ```
* | Don't use `is` operatory to compare Python stringsCorey Farwell2015-08-221-2/+2
|/ | | | | | | | | | `is` checks identity. `==` checks value. I can't think of a reason why we would want the former in these scenarios. More info: * http://stackoverflow.com/a/1504742 * https://docs.python.org/2/reference/expressions.html#is
* Utilize Python context managers for opening/closing filesCorey Farwell2015-08-211-6/+4
| | | | In some of these cases, files were not being closed
* Initial implementation of ownPropertyKeys proxy handlerCorey Farwell2015-08-201-3/+68
| | | | | | | | | | | Generates `SupportedPropertyNames` on DOM structs that should implement it. Most of them are unimplemented now (which can be implemented in later PRs), with the exception of `HTMLCollection`. Also added a couple relevant WPT tests. Closes #6390 Closes #2215
* Auto merge of #7230 - nox:required-dictionary-member, r=Ms2gerbors-servo2015-08-181-8/+13
|\ | | | | | | | | | | | | | | | | | | Support required dictionary members (fixes #7216) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7230) <!-- Reviewable:end -->
| * Support required dictionary members (fixes #7216)Anthony Ramine2015-08-161-2/+6
| |
| * Update WebIDL parserAnthony Ramine2015-08-161-6/+7
| |
* | Auto merge of #7236 - nox:dictionary-failure-code, r=Ms2gerbors-servo2015-08-161-1/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | Fix dictionary member conversion failure (fixes #7231) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7236) <!-- Reviewable:end -->
| * Fix dictionary member conversion failure (fixes #7231)Anthony Ramine2015-08-161-1/+0
| |
* | Support default values for restricted float members (fixes #7217)Anthony Ramine2015-08-151-3/+5
|/
* Auto merge of #7199 - frewsxcv:codegen-if-let, r=Manishearthbors-servo2015-08-131-8/+4
|\ | | | | | | | | | | | | | | | | | | Prefer if..let over if..is_some..unwrap in codegen <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7199) <!-- Reviewable:end -->
| * Prefer if..let over if..is_some..unwrap in codegenCorey Farwell2015-08-131-8/+4
| |
* | Avoid marking codegen method bodies as unsafe twiceCorey Farwell2015-08-131-1/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | `CGAbstractMethod` takes a couple boolean parameters, among others: * `extern`: will mark the method as `unsafe` and `extern` * `unsafe`: will wrap the method body in an `unsafe` block Passing both as `True` should not mark it as `unsafe` twice. Example from a generated `HTMLCollectionBinding.rs`: Before: ``` unsafe extern fn get_length(..) -> u8 { unsafe { // code here } } ``` After ``` unsafe extern fn get_length(..) -> u8 { // code here } ```
* Remove dead Python code in binding generating codeCorey Farwell2015-08-051-221/+4
| | | | Fixes #6956
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-1/+1
| | | | frame treese in script tasks.
* Remove an obsolete comment I missed in #6804.Ms2ger2015-07-301-2/+0
|
* Remove unrooted_must_root annotation from unions (fixes #2661).Ms2ger2015-07-281-1/+0
| | | | | The unsafety was fixed as part of the SpiderMonkey upgrade; this removes the now unused annotation.
* Add aarch64-unknown-linux-gnu supportAkos Kiss2015-07-231-4/+4
| | | | | | * Adding dependencies * Replacing `i8` with `libc::c_char` to build properly on platforms where char is unsigned.
* Add Clamp and EnforceRange support for webidl arguments.snf2015-07-221-6/+17
|
* Auto merge of #6592 - frewsxcv:notimplementederror, r=Ms2gerbors-servo2015-07-211-5/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use NotImplementedError for Python base class methods From the Python docs: https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError "In user defined base classes, abstract methods should raise this exception when they require derived classes to override the method." <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6592) <!-- Reviewable:end -->
| * Use NotImplementedError for Python base class methodsCorey Farwell2015-07-111-5/+4
| | | | | | | | | | | | | | | | | | From the Python docs: https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError "In user defined base classes, abstract methods should raise this exception when they require derived classes to override the method."
* | Move away from the repeat().take().collect() pattern.Ms2ger2015-07-141-2/+1
|/ | | | | This was the preferred pattern between the deprecation of Vec::from_elem and the addition of the count argument to the vec![] macro.
* Remove tidy blacklist for 'script/dom/bindings/*'Corey Farwell2015-07-091-229/+422
| | | | | | | | | | | | | | | | | | | | | Recently, I found myself reading through the Python codegen scripts that live in 'components/script/dom/bindings/*' and noticed that there were many tidy violations: unnecessary semicolons, weird spacing, unused variables, lack of license headers, etc. Considering these files are now living in our tree and mostly maintained directly by contributors of Servo (as opposed to being from upstream), I feel these files should not be excluded from our normal tidy process. This commit removes the blacklist on these files and fixes all tidy violations. I added these subdirectories to the blacklist because they appear to be maintained upstream somewhere else: * "components/script/dom/bindings/codegen/parser/*", * "components/script/dom/bindings/codegen/ply/*", Also, I added a '# noqa' comment which tells us to ignore the flake8 errors for that line. I chose to ignore this (instead of fixing it) to make the work for this commit simpler for me.
* Remove *Cast::from_actual.Ms2ger2015-07-041-6/+1
| | | | Since JSRef was removed, from_actual duplicates from_ref.
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-3/+2
| | | | fixes #6524
* CGImports must consider special operations to generate required 'use' itemsMukilan Thiyagarajan2015-06-271-0/+3
|
* Use Rc::get_mut rather than deprecated rc::get_mut.Ms2ger2015-06-261-1/+2
|
* Use Box::into_raw rather than boxed::into_raw.Ms2ger2015-06-251-2/+1
| | | | The latter is deprecated.
* Add support for NamedConstructor in webidlsJoel Teichroeb2015-06-241-0/+40
|
* Merge generic funs to share them across all bindings (fixes #2684)Anthony Ramine2015-06-241-140/+17
|
* Upgrade to SM 39Michael Wu2015-06-191-549/+905
|
* Generate code into OUT_DIR.Jack Moffitt2015-06-171-21/+23
| | | | | | | | This is necessary to ensure Cargo knows when to rebuild. Normally .gitignore would be enough to exclude these from Cargo's freshness calculation, but https://github.com/rust-lang/cargo/issues/1729 prevents this currently. This is the new, correct way to do these thigns, just like the style crate does.