aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Upgrade to SM 39Michael Wu2015-06-191-170/+208
|
* Avoid casting in the callersDaniel Le2015-06-061-5/+6
| | | | | | get_proto_or_iface_array now returns *mut ProtoOrIfaceArray Fix #6271
* Trace the prototype array on the global object.Josh Matthews2015-06-011-1/+12
|
* Add WebGLContextAttributes supportecoal952015-06-011-2/+22
| | | | | | | This commit also: * Allows to return non-rootable dictionaries from Codegen. * Merges the two context types in an enum type.
* Avoid extra O(n) scan in `validate_and_extract`Tamir Duberstein2015-05-261-11/+21
| | | | | Also `debug_assert!`s that `splitn` was called with the correct `count` argument.
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+1
|
* Implement Clone for Copy types.Ms2ger2015-04-281-1/+4
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Pass Atom to Attr:new for the prefix argument.Ms2ger2015-04-271-3/+2
|
* Stop using the deprecated range function.Ms2ger2015-04-221-1/+1
|
* Update some URLs.Ms2ger2015-04-141-1/+1
| | | | | The HTML spec's division into pages is not stable, so it is safer to use the URL without a specific page (which will redirect).
* Support callback interfaces with constants.Chris Paris2015-04-111-16/+18
|
* Add script::dom::utils::validate_and_extract()Anthony Ramine2015-04-081-1/+52
| | | | | | | Accidentally fixes bugs about Document::createElementNS() where the implementation of "validate and extract" used to check whether the local name extracted from the qualified name was "xmlns" instead of the qualified name itself.
* Add script::dom::utils::validate_qualified_name()Anthony Ramine2015-04-081-1/+16
|
* Fix xml_name_type()Anthony Ramine2015-04-061-3/+9
| | | | Names with a trailing colon are not qualified names.
* Fix various build warnings.Ms2ger2015-03-201-2/+2
|
* Free the interface prototype array when Window is finalizedTim Cuthbertson2015-03-201-1/+9
| | | | Fixes #1871
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-1/+4
|
* Fix #2108 by renaming unwrap functions to native_from_reflectorChris Double2015-03-121-2/+2
| | | | | | | | | | As noted by @bholley. "unwrap" is confusing because we are both stripping off wrappers *and* getting a native from a reflector. Changing the "unwrap" usage to "native_from_reflector" for clarity. This renames 'unwrap' to 'native_from_reflector' and 'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
* Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-101-22/+12
|
* Replace uint/int by usize/isize in various places.Ms2ger2015-02-201-5/+5
|
* Replace squirrel_away_unique by boxed::into_raw.Ms2ger2015-02-121-7/+2
|
* Rename CreateDOMGlobal to create_dom_global.Ms2ger2015-01-291-1/+2
|