aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implementation of Blob Constructor with test changesSt.Spyder2016-03-171-3/+19
|
* Convert directly from DOMString to Vec<u8>Saurav Sachidanand2016-03-111-3/+1
|
* Add global default method for Reflectable traitChad Kimes2016-01-111-3/+3
|
* Remove global field from BlobChad Kimes2016-01-101-8/+5
|
* Changed blob to use DataSlice with Arc in order to limit wasteful copying of ↵David Raifaizen2016-01-061-53/+83
| | | | byte vector
* Update FileAPI spec linksBrandon Fairchild2016-01-051-9/+9
| | | | | | | The links in components/script/dom/blob.rs were pointing to the old location. Fixes #9157.
* Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-101-1/+1
|
* Rustfmt some of script.Ms2ger2015-11-181-14/+17
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-2/+3
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Auto merge of #8218 - nikkisquared:master, r=eefriedmanbors-servo2015-11-051-0/+5
|\ | | | | | | | | | | | | | | I'm working on resolving https://github.com/servo/servo/issues/8213 as per the spec online and feedback in the servo channel. Note that currently I cannot build (and thus test) my code, so this is a bit of a rough first draft. I'd still like feedback on my progress, and I hope that there is another way for my code to be tested. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8218) <!-- Reviewable:end -->
| * Fixes #8213: Implement Blob variant of WebSocket.send()Nikki2015-11-041-0/+5
| |
* | Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-4/+4
| | | | | | | | | | | | | | | | | | | | 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.
* | Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-2/+2
| |
* | more refactoringrohan.prinja2015-10-301-1/+1
|/
* Generate all Derived implementations in codegenAnthony Ramine2015-10-141-7/+0
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-15/+4
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Remove needless returnsManish Goregaokar2015-09-041-1/+1
|
* Replace many uses of to_ascii_lowercase() by make_ascii_lowercase()Anthony Ramine2015-08-301-2/+3
|
* Merge adjacent identical `impl` sectionsCorey Farwell2015-08-281-3/+0
| | | | | Prior to #7416 and #7401, many of these `impl` sections were not identical
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-6/+6
|
* Remove helper traitsAnthony Ramine2015-08-271-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-6/+6
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-1/+2
|
* Refactor FileReader #6762 #6763 #6750 #6751farodin912015-07-291-8/+3
|
* Adding for support Blob.{close,isClose} #6723farodin912015-07-291-16/+22
|
* Add spec linksBogdan Cuza2015-07-281-3/+3
|
* Use empty Vec instead of None.Michael Howell2015-07-261-3/+3
|
* Implement FileReader.{readAsText,readAsDataUrl}. Fixes #6172farodin912015-07-231-0/+18
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-1/+1
| | | | fixes #6524
* Upgrade to SM 39Michael Wu2015-06-191-6/+6
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-1/+2
| | | | Part of https://github.com/servo/servo/issues/6041
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+1
|
* Remove as_slice() calls from script.Ms2ger2015-04-261-6/+5
|
* Add/update comments with links to specCorey Farwell2015-04-141-0/+8
| | | | | | | | | | Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable
* Fix various build warnings.Ms2ger2015-03-201-2/+2
|
* Fix some warnings in script.Ms2ger2015-02-121-1/+1
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-3/+5
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-4/+5
| | | | into_string has been removed from Rust.
* Fixes #4164 Make Constructor and new functions take GlobalRef by valueMatt McCoy2015-01-071-8/+8
|
* Rename GlobalRoot::root_ref() to GlobalRoot::r() for consistency.Ms2ger2015-01-011-2/+2
|
* Bug #1820, add the optional "type" parameter to BlobShing Lyu2015-01-011-15/+31
|
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-271-6/+1
|\ | | | | | | | | | | Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
| * Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+1
| | | | | | | | | | | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* | script: to_string() -> into_string()Manish Goregaokar2014-12-271-2/+2
|/
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-7/+7
|
* Correctly set the BlobType for File objects.Ms2ger2014-12-151-3/+4
|