aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Update Blob::{new, new_inherited} to take StringsAchal Shah2016-06-171-6/+5
|
* Add unit testing to file manager; Replace uuid by stringified version in ↵Zhen Zhang2016-06-101-5/+4
| | | | FileManagerThreadMsg
* Add file backend support for Blob and relatedZhen Zhang2016-06-011-25/+109
| | | | | | | | Changes include: - Add BlobImpl to Blob, and related caching mechanism - Expose ResourceThreads to document_loader, workerglobalscope, worker, and global - Fix encode_multipart_form_data - Other small fixes to accommodate the above changes
* Remove empty lines following braces.Josh Matthews2016-05-271-3/+0
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Removed unused importsPer Lundberg2016-05-151-1/+0
| | | | This fixes #11185.
* Implement missing interfaces of File DOM objectZhen Zhang2016-05-111-17/+18
|
* Rewrite Blob constructor interfaceZhen Zhang2016-05-101-37/+41
|
* Fixes related to file input and File APIZhen Zhang2016-05-021-0/+4
|
* updated Blob constructor to use optional, fixes ↵Yoav Alon2016-04-221-21/+20
| | | | https://github.com/servo/servo/issues/10779
* Use num-traits in script.Ms2ger2016-04-201-1/+1
|
* 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
|