aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename a confusing argument.Ms2ger2015-11-191-2/+2
|
* Rustfmt some of script.Ms2ger2015-11-181-106/+152
|
* Use the conversion traits from js.Ms2ger2015-11-121-6/+7
|
* Use throw_type_error and throw_range_error from js.Ms2ger2015-11-121-1/+2
|
* Clean up the conversion routinesAnthony Ramine2015-11-111-7/+3
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* more cleanuprohan.prinja2015-10-301-3/+1
|
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* replace InheritTypes imports with inheritance importsrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-239/+0
|
* Auto merge of #8242 - Ms2ger:update-js, r=metajackbors-servo2015-10-281-1/+1
|\ | | | | | | | | | | | | | | | | | | Update js. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8242) <!-- Reviewable:end -->
| * Update js.Ms2ger2015-10-281-1/+1
| |
* | move reserved slot setting for DOM globalsNathan Froyd2015-10-271-1/+3
|/ | | | | | | Moving this slot setting prior to initializing standard classes and other initialization tasks means that we can effectively use JS_GC_ZEAL. Fixes #6057.
* Use the new define_methods and define_properties functions from js.Ms2ger2015-10-251-40/+18
|
* Remove the unused default implementation of Reflectable::init_reflector.Ms2ger2015-10-231-3/+1
|
* Introduce IDLInterface::derives()Anthony Ramine2015-10-211-2/+5
| | | | | | | This method is given a DOMClass value and returns whether it derives from Self. Interfaces with no descendants directly check whether the given DOMClass is the same as their own.
* Auto merge of #7943 - pierrechevalier83:fix_issue_7941, r=Ms2gerbors-servo2015-10-191-9/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify some code in do_create_interface_objects rval.get() is believed to be always null upon entering this function. This assumption is verified by the added assertion. It makes more sense to move the block of code that was moved inside the if statement which is the only place where it can be initialized. Fixes #7941. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7943) <!-- Reviewable:end -->
| * Clarify some code in do_create_interface_objectsPierre Chevalier2015-10-101-9/+10
| | | | | | | | | | | | | | | | | | rval.get() is believed to be always null upon entering this function. This assumption is verified by the added assertion. It makes more sense to move the block of code that was moved inside the if statement which is the only place where it can be initialized. Fixes #7941.
* | Auto merge of #7972 - nox:codegen-heapsize, r=Ms2gerbors-servo2015-10-151-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce DOMClass::heap_size_of It holds a function pointer to the HeapSizeOf::heap_size_of_children() implementation corresponding to that IDL interface. This removes the need for a clumsly TypeId-based match expression in the former heap_size_of_eventtarget() function. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7972) <!-- Reviewable:end -->
| * | Introduce DOMClass::heap_size_ofAnthony Ramine2015-10-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | It holds a function pointer to the HeapSizeOf::heap_size_of_children() implementation corresponding to that IDL interface. This removes the need for a clumsly TypeId-based match expression in the former heap_size_of_eventtarget() function.
* | | Support the updated spidermonkey bindingsMichael Wu2015-10-141-47/+47
|/ /
* / Generate the TypeId enums in codegenAnthony Ramine2015-10-141-3/+3
|/
* Changed dom_class type to Option<&'static DOMClass>Andriy Kunitsin2015-10-091-4/+9
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-13/+12
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-121-0/+4
|
* Remove needless returnsManish Goregaokar2015-09-041-7/+7
|
* Elide most 'a lifetimesManish Goregaokar2015-09-041-1/+1
|
* sort all usesJohann Tuffe2015-08-201-27/+27
|
* Update js.Ms2ger2015-08-181-1/+1
|
* Replace uses of `for foo in bar.iter()`,João Oliveira2015-08-181-1/+1
| | | | | and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-2/+2
| | | | closes #7197
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-1/+12
| | | | frame treese in script tasks.
* Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapinbors-servo2015-07-301-2/+2
|\ | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) This builds and passes unit tests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850) <!-- Reviewable:end -->
| * Remove usage of the deprecated `box () (expr)` syntax.Simon Sapin2015-07-301-2/+2
| |
* | Use an actual byte string when defining the prototype of named constructors. ↵Josh Matthews2015-07-291-1/+1
|/ | | | Fixes #6730.
* Add aarch64-unknown-linux-gnu supportAkos Kiss2015-07-231-1/+1
| | | | | | * Adding dependencies * Replacing `i8` with `libc::c_char` to build properly on platforms where char is unsigned.
* Make stmt part of unrooted_must_root handle type parameters (fixes #6651)Manish Goregaokar2015-07-221-2/+1
|
* Rename browser_context identifiers to browsing_context.Ms2ger2015-07-201-1/+1
|
* Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)Simon Sapin2015-07-151-0/+1
|
* Auto merge of #6529 - dwins:master, r=Manishearthbors-servo2015-07-011-1/+1
|\ | | | | | | | | | | | | | | | | | | Refactor #[jstraceable] to #[derive(JSTraceable)] fixes #6524. I had to make an additional change not mentioned in the ticket - adding the `#[feature]` to enable deriving custom traits but I assume that's expected at this time. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6529) <!-- Reviewable:end -->
| * Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-1/+1
| | | | | | | | fixes #6524
* | Remove string_cache dependency from util.Matt Brubeck2015-07-011-2/+11
|/ | | | | Move `namespace::from_domstring` from util to script::dom, because it is used only in that crate.
* Use Box::into_raw rather than boxed::into_raw.Ms2ger2015-06-251-2/+1
| | | | The latter is deprecated.
* Auto merge of #6110 - klusark:NamedConstructor, r=Ms2gerbors-servo2015-06-251-25/+64
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Named constructors and the Image constructor for HTMLImageElement I'm not sure if I like how I mostly just duplicated the code in CodegenRust.py, so that might need to be refactored. Instead of just calling it Image, we might want to call it ConstructorImage, to make it clear that it's a constructor. Anyone have an opinion on that? There seems to be a bug in the HTMLImageElement getter/setter as the value is 0 regardless of what I do. This seems to be unrelated to my commits, so I'll investigate that separately. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6110) <!-- Reviewable:end -->
| * Add support for NamedConstructor in webidlsJoel Teichroeb2015-06-241-25/+64
| |
* | Remove unused js::JS_ARGV import in script componentCorey Farwell2015-06-241-1/+1
|/
* Auto merge of #6223 - nox:merge-generic-functions, r=Ms2gerbors-servo2015-06-241-9/+99
|\ | | | | | | | | | | | | | | | | | | Merge generic funs to share them across all bindings (fixes #2684) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6223) <!-- Reviewable:end -->
| * Merge generic funs to share them across all bindings (fixes #2684)Anthony Ramine2015-06-241-9/+99
| |
* | Fix some warnings caused by the SM upgradeMichael Wu2015-06-191-1/+1
|/