aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/filereader.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-12/+13
| | | | | * strict imports formatting * Reformat all imports
* bump base64 from 0.10 to 0.21 (#29804)Tuna2023-08-021-2/+2
| | | | | | | | | * bump base64 from 0.10 to 0.21 * Fix configuration of bitflags --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-1/+4
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-5/+6
|
* Make GlobalScope.get_cx a static method.Josh Matthews2023-05-201-1/+1
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-6/+2
|
* rename compartment to realmKunal Mohan2020-01-241-1/+1
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* remove unnecessary thread in filereader, add stream TODOGregory Terzian2019-12-101-44/+25
|
* don't send progress event for empty blobSiddhartha Mishra2019-10-101-2/+4
|
* FileReader.read sets `result` to null before performing read operationMicah Tigley2019-09-301-2/+5
|
* Remove some usage of unsafe code in FileReadermarmeladema2019-08-091-8/+6
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-1/+1
|
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-2/+5
|
* Create a helper API for entering a DOM object's compartmentKamil Niski2019-06-291-2/+2
| | | | | | Revert some unnecessary changes Fix fmt errors
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-3/+2
|
* Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-1/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-3/+5
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Sort `use` statementsSimon Sapin2018-11-061-3/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-20/+20
|
* Update hyper to 0.12Bastien Orivel2018-11-011-6/+5
|
* Format script componentchansuke2018-09-191-2/+1
|
* introduce "per task source" ignoring of tasksGregory Terzian2018-07-101-2/+2
|
* Implement read methods on FileReaderSyncJonas Reinwald2018-06-041-69/+139
|
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-1/+2
| | | | https://github.com/rust-lang/rust/issues/46906
* Replace rust-encoding with encoding-rsSimon Sapin2017-11-011-8/+6
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-4/+4
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-6/+6
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Remove almost all uses of Heap::new.Josh Matthews2017-09-251-2/+3
|
* Be more conservative about safety of dictionary and union values.Josh Matthews2017-09-251-1/+3
| | | | | | | | Mark dictionaries containing GC values as must_root, and wrap them in RootedTraceableBox in automatically-generated APIs. To accommodate union variants that are now flagged as unsafe, add RootedTraceableBox to union variants that need to be rooted, rather than wrapping the entire union value.
* Introduce TaskOnceAnthony Ramine2017-09-201-3/+3
| | | | | Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing from CancellableTask<T>.
* Move Task to its own moduleAnthony Ramine2017-09-181-1/+1
|
* Remove FileReadingRunnableAnthony Ramine2017-09-161-7/+7
|
* Rename Runnable to TaskAnthony Ramine2017-09-161-12/+21
| | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* Use absolute paths in the event handlers macrosAnthony Ramine2017-09-011-1/+0
|
* order derivable traits listsClément DAVID2017-08-231-3/+3
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Replace use of rustc_serialize::base64 by base64Anthony Ramine2017-03-261-8/+2
|
* Remove support for Blob::{close, isClosed}Charles Vandevoorde2017-02-281-11/+2
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Use Heap for dictionary and union members.Ms2ger2017-02-161-1/+1
|
* Update js.Ms2ger2017-02-151-2/+2
| | | | Fixes #15553.
* Use an ArrayBuffer to implement readAsArrayBuffer.Ms2ger2017-01-191-2/+2
|