aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
Commit message (Collapse)AuthorAgeFilesLines
* Refactored a couple of files from codeStyle to code_style.Arthur Marble2016-09-171-2/+2
|
* Refactor isClosed_ to is_closed and relativeContentType to ↵Arthur Marble2016-09-171-7/+7
| | | | relative_content_type.
* Replace typeString with type_string.Arthur Marble2016-09-171-5/+5
|
* Reorder `use` statementsUK9922016-09-091-2/+2
|
* Burn SelectedFileId in fireZhen Zhang2016-08-221-15/+12
|
* Auto merge of #12897 - izgzhen:improve-file-api-comments, r=Manishearthbors-servo2016-08-171-7/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve File API related comments r? @Manishearth --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12897) <!-- Reviewable:end -->
| * Improve File API related commentsZhen Zhang2016-08-171-7/+9
| |
* | Improve Blob.Size() speed by avoid reading contentZhen Zhang2016-08-161-5/+6
|/
* Add cancellability to file manager load and related refactoringZhen Zhang2016-08-021-11/+14
|
* Auto merge of #12579 - izgzhen:fix-fileapi-ref, r=Manishearthbors-servo2016-08-021-61/+79
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix FileAPI's refcount implementation Revise several intricate parts of FileAPI's internal refcounting-related implementation. Goal: Get it done right once and for all. r? @Manishearth <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it is internal logic change <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12579) <!-- Reviewable:end -->
| * Fix FileAPI's refcount implementationZhen Zhang2016-07-251-61/+79
| |
* | Chunked ReadFile from file managerZhen Zhang2016-07-251-4/+16
|/
* Patches of File APIZhen Zhang2016-07-211-3/+4
|
* Auto merge of #12400 - izgzhen:fix-type-string, r=Manishearthbors-servo2016-07-181-25/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Blob type-string Use a final construction guard over type-string format; and other minor related cleanups r? @Manishearth <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12400) <!-- Reviewable:end -->
| * Fix Blob type-stringZhen Zhang2016-07-131-25/+19
| |
* | Put Blob URL onlineZhen Zhang2016-07-151-22/+22
|/
* Refactor FileAPI implementationZhen Zhang2016-07-131-26/+44
|
* Add FileID validity setting/checking logic to Blob URL implementationZhen Zhang2016-07-111-12/+50
|
* Remove DataSlice, fix #12249Zhen Zhang2016-07-051-91/+26
|
* Integration and improvements of File API backendsZhen Zhang2016-07-041-48/+158
| | | | | | 1. More complete origin check in FileManagerThreadMsg 2. Add reference counting logic to file manage store and script API 3. Integrate the support of slicing
* 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
|