aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcanvaselement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix some build warningsMartin Robinson2023-01-111-2/+2
| | | | | | | | - Mark some instances of unused fields and variables as as allowed, when they are used for memory management. - Remove the use of some deprecated function.s Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Update image/png.Josh Matthews2022-04-011-1/+1
|
* Fix deprecation warnings.Josh Matthews2020-11-121-2/+2
|
* dom: Add stub implementation for HTMLCanvasElement.captureStream.Josh Matthews2020-07-141-0/+15
|
* Implement GPUSwapChain and GPUCanvasContext and interface with WebrenderKunal Mohan2020-06-131-4/+43
|
* Update some URLsAlex Touchet2020-05-041-3/+3
|
* Auto merge of #23661 - julientregoat:i-21289, r=jdmbors-servo2020-04-171-11/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor ImageCache::find_image_or_metadata -> ImageCache::{get_image, track_image} <!-- Please describe your changes on the following line: --> Updated the `ImageCache` trait to replace `find_image_or_metadata` with two new functions `track_image` and `get_image`, as well as a new enum (`ImageCacheResult`). As a result, I was able to refactor the functions that previously called `find_image_or_metadata` pretty cleanly. For a list of these functions, please see the commit information. --- <!-- 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 fix #21289 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because tests already exist for these components. I ran `cargo test` in `net`, `net_traits`, `layout`, and `script` successfully. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/23661) <!-- Reviewable:end -->
| * Refactor ImageCache::find_image_or_metadata API.Julien Tregoat2020-04-171-11/+7
| |
* | Automatically enable WebGL 2 for specific domains.Josh Matthews2020-04-151-2/+2
|/
* Update euclidManish Goregaokar2020-04-071-1/+0
|
* Reduce scope of unsafe block in LayoutHTMLCanvasElementHelpers::dataAnthony Ramine2020-03-311-15/+15
|
* Introduce <LayoutDom<Element>>::attrs()Anthony Ramine2020-03-311-14/+8
| | | | | | This safe method is the basic block to access element attributes from layout. We reuse it in the other attr-related layout methods to remove a pretty big source of rampant unsafe code between script and layout.
* Merge RawLayoutElementHelpers into LayoutElementHelpersAnthony Ramine2020-03-311-7/+6
|
* Make LayoutHTMLCanvasElementHelpers methods take selfAnthony Ramine2020-03-291-8/+8
|
* Give a lifetime parameter to LayoutDomAnthony Ramine2020-03-281-1/+1
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-051-1/+1
| | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* Add accountable-refcell as optional build time featureKunal Mohan2020-01-081-3/+2
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-101-1/+4
| | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* Support CORS attributes for image elements.Josh Matthews2019-10-041-1/+7
|
* Double key image cache by requesting origin, and store CORS status with ↵Josh Matthews2019-10-041-0/+1
| | | | cached images.
* Remove some usage of unsafe code in HTMLCanvasElementmarmeladema2019-08-091-33/+26
|
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-11/+12
|
* Convert internal methods to handle safe JSContext instead of raw JSContextmarmeladema2019-07-241-1/+2
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-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.
* #8539 Config preferences backend restructurePeter Hall2019-03-201-2/+2
|
* Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-2/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+3
|
* Make HTMLCanvasElement::fetch_all_data return a shared memory blobAnthony Ramine2018-11-211-3/+4
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-7/+13
|
* Format remaining filesPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-21/+21
|
* Share some code between 2D canvas and WebGLAnthony Ramine2018-10-091-2/+2
|
* Add a couple of bug linksAnthony Ramine2018-10-081-0/+2
|
* Avoid ctx.getImageData in canvas.toDataURLAnthony Ramine2018-10-081-10/+6
|
* Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-061-8/+1
|
* Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-061-1/+2
|
* Reindent the WebGL 2 case of canvas.toDataURLAnthony Ramine2018-10-031-6/+5
|
* Slightly clean up the final URL creation in canvas.toDataURLAnthony Ramine2018-10-031-13/+10
|
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-3/+3
| | | | The changes keep trickling down.
* Format script componentchansuke2018-09-191-56/+78
|
* Don't create 2D canvas contexts arbitrarilyAnthony Ramine2018-09-161-40/+39
| | | | | Sometimes, the canvas still has no rendering context, in this case it represents a transparent black rectangle.
* Mark some canvas methods as unsafeAnthony Ramine2018-09-161-5/+10
| | | | They use raw JS context pointers.
* Update HTMLCanvasElement WebIDL definitionAnthony Ramine2018-09-151-28/+27
|
* Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-2/+16
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-1/+2
|