aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/canvas_state.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement CanvasRenderingContext2D.getTransform()pylbrecht2020-02-121-0/+10
|
* Make create_pattern() return None for incomplete imagespylbrecht2020-02-101-6/+8
|
* Add canvas usability checks to drawImage()pylbrecht2020-02-031-0/+10
|
* Add image usability checks to drawImage()pylbrecht2020-02-031-0/+8
|
* Send fill/stroke style along with drawing messagepylbrecht2020-01-251-28/+20
|
* Update fill and stroke style only when requiredpylbrecht2020-01-251-18/+23
| | | | | | | | | | | | So far fill and stroke style updates have been sent to the canvas paint thread by `SetFillStyle()` and `SetStrokeStyle()`. This resulted in fill/stroke style updates not being considered by the canvas paint thread between the latest call of `SetFillStyle()`/`SetStrokeStyle()` and the drawing operation (e.g. fill or stroke). This issue is solved by making `SetFillStyle()` and `SetStrokeStyle()` update the local canvas state and propagating the state to the canvas paint thread right before any drawing operation that requires it.
* Addresses Issue: Support OffscreenCanvas as CanvasImageSource #24269Bailey Blankenship2019-12-041-2/+70
| | | | | | Added methods to canvas_data to support drawing an offscreen canvas onto another canvas Bug fix: Swapped OffscreenCanvas width and height parameters to match Mozilla spec Tests: Updated metadata for 866 tests
* Auto merge of #24426 - servo:wrup, r=jdm,noxbors-servo2019-11-201-1/+2
|\ | | | | | | | | | | | | | | Update webrender <!-- 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/24426) <!-- Reviewable:end -->
| * Update webrender and serde_bytesAnthony Ramine2019-11-131-1/+2
| |
* | Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-3/+3
|/ | | | CC https://github.com/rust-lang/rust/issues/66079
* Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-101-6/+20
| | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* Return false from CanvasState::IsPointInPath for NaN/infinite valuesteapotd2019-10-281-0/+4
|
* Moved CanvasState out of canvasrenderingcontextHanif Bin Ariffin2019-10-251-0/+1536
Cleaned up imports... Applied clang-tidy Moved CanvasState and some other files Next commit should remove pub modifier from members of CanvasState and use getters/setters instead. Members of CanvasState are now private and applied test-tidy Now have getters that return an immutable reference. Also, I have no idea what to name some_func.rs Removed need for some_func and made pub(crate)