Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensions | Bailey Blankenship | 2019-11-10 | 1 | -2/+12 |
| | | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code | ||||
* | Refactor constructor code to align with spec. | Isaiah Inuwa | 2019-09-26 | 1 | -50/+55 |
| | |||||
* | Add check for empty data on ImageData constructor. | Isaiah Inuwa | 2019-09-23 | 1 | -1/+1 |
| | |||||
* | Modify *::get_cx methods to return a safe JSContext instead of a raw one | marmeladema | 2019-07-24 | 1 | -5/+5 |
| | |||||
* | Convert CGTraitInterface to use safe JSContext instead of raw JSContext | marmeladema | 2019-07-24 | 1 | -4/+4 |
| | |||||
* | Update euclid. | Emilio Cobos Álvarez | 2019-07-23 | 1 | -1/+1 |
| | | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is. | ||||
* | Remove mozjs dep from malloc_size_of. | Josh Matthews | 2019-05-02 | 1 | -0/+1 |
| | |||||
* | Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2d | Anthony Ramine | 2018-11-20 | 1 | -2/+3 |
| | | | | This avoids a copy in the case of textures coming from HTMLImageElement. | ||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Prefix some pixels functions with rgba8_ | Anthony Ramine | 2018-11-16 | 1 | -1/+1 |
| | |||||
* | Remove useless `use crate_name;` imports. | Simon Sapin | 2018-11-08 | 1 | -1/+0 |
| | | | | A `crate_name::foo` path always works in 2018 | ||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -3/+3 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -6/+6 |
| | |||||
* | Handle some transparent black cases in ctx.getImageData | Anthony Ramine | 2018-10-07 | 1 | -20/+2 |
| | |||||
* | Avoid copying pixels in ctx.putImageData sometimes | Anthony Ramine | 2018-10-06 | 1 | -32/+36 |
| | |||||
* | Introduce ImageData::get_rect | Anthony Ramine | 2018-10-06 | 1 | -1/+32 |
| | | | | | | | We use that to send only the pixels that will be actually drawn to the canvas thread in CanvasRenderingContext2d::PutImageData. We also make the canvas thread byte swap and premultiply colours in-place. | ||||
* | Make HTMLCanvasElement::get_size return a Size2D<u32> | Anthony Ramine | 2018-10-02 | 1 | -2/+2 |
| | | | | The changes keep trickling down. | ||||
* | Format script component | chansuke | 2018-09-19 | 1 | -19/+27 |
| | |||||
* | Fix the build for NLL | Simon Sapin | 2018-08-24 | 1 | -1/+1 |
| | | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7 | ||||
* | Revert "Fix the build for NLL" | Josh Matthews | 2018-08-07 | 1 | -1/+1 |
| | | | | This reverts commit d1733aa5029c5b97390a236d94eed916ddb64577. | ||||
* | Fix the build for NLL | Simon Sapin | 2018-08-08 | 1 | -1/+1 |
| | | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7 | ||||
* | Use safe NonZero constructor instead of an explicit null check | Simon Sapin | 2018-01-22 | 1 | -2/+1 |
| | |||||
* | Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject> | Simon Sapin | 2018-01-22 | 1 | -3/+3 |
| | |||||
* | Fix tyvar_behind_raw_pointer warnings | Simon Sapin | 2018-01-10 | 1 | -2/+2 |
| | | | | https://github.com/rust-lang/rust/issues/46906 | ||||
* | Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls. | Simon Sapin | 2017-10-16 | 1 | -3/+3 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | 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 Ramine | 2017-09-26 | 1 | -5/+5 |
| | | | | | | | 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 dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26) | Simon Sapin | 2017-07-27 | 1 | -1/+1 |
| | |||||
* | Untry script | Simon Sapin | 2017-06-18 | 1 | -2/+2 |
| | |||||
* | Bump euclid to 0.14. | Nicolas Silva | 2017-06-14 | 1 | -1/+1 |
| | |||||
* | Make ImageData::new return Fallible instead of panic | Lucjan Suski | 2017-03-20 | 1 | -2/+6 |
| | |||||
* | Implement ImageData constructors #15671 | montrivo | 2017-03-14 | 1 | -10/+81 |
| | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Update js. | Ms2ger | 2017-02-15 | 1 | -4/+11 |
| | | | | Fixes #15553. | ||||
* | Remove warnings about unnecessary mutability. | Alan Jeffrey | 2017-01-28 | 1 | -1/+1 |
| | |||||
* | Use the typed array APIs in ImageData. | Ms2ger | 2017-01-09 | 1 | -20/+11 |
| | |||||
* | script creates methods taking '*mut JSContext' unsafe | Abelardo E. Mendoza | 2016-11-14 | 1 | -2/+2 |
| | | | | rebase + marked the necessary new code as unsafe | ||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -2/+2 |
| | |||||
* | Compile WebIDL return type "object" to NonZero<*mut JSObject> | Anthony Ramine | 2016-08-30 | 1 | -2/+4 |
| | |||||
* | Don't bother with the global in ImageData::get_image_data | Anthony Ramine | 2016-08-30 | 1 | -3/+3 |
| | |||||
* | Assert that ImageData::data is not null | Anthony Ramine | 2016-08-30 | 1 | -0/+3 |
| | |||||
* | Update SpiderMonkey | Anthony Ramine | 2016-05-03 | 1 | -2/+7 |
| | |||||
* | Remove `#[allow(raw_pointer_derive)]` attributes | Brandon Fairchild | 2015-11-27 | 1 | -1/+0 |
| | | | | | | The attributes are unused. Fixes #8699. | ||||
* | more refactoring | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | sorted the extern crate, mod & use declarations | Ravi Shankar | 2015-09-24 | 1 | -2/+2 |
| | |||||
* | Merge adjacent identical `impl` sections | Corey Farwell | 2015-08-28 | 1 | -3/+0 |
| | | | | | Prior to #7416 and #7401, many of these `impl` sections were not identical | ||||
* | Make the traits for the IDL interfaces take &self | Anthony Ramine | 2015-08-27 | 1 | -4/+4 |
| | |||||
* | Remove helper traits | Anthony Ramine | 2015-08-27 | 1 | -7/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Oliveira | 2015-08-27 | 1 | -1/+0 |
| | | | | closes #7357 |