aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/canvasrenderingcontext2d.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove old rendering backend.Glenn Watson2016-10-181-10/+2
| | | | | | | | | | | | | | This removes paint threads, rust-layers dependency, and changes optional webrender types to be required. The use_webrender option has been removed, however I've left the "-w" command line option in place so that wpt runner can continue to pass that. Once it's removed from there we can also remove the -w option. Once this stage is complete, it should be fine to change the display list building code to generate webrender display lists directly and avoid the conversion step.
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-11/+8
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-6/+6
|
* Make CanvasRenderingContext2d::new take a &GlobalScopeAnthony Ramine2016-10-061-5/+5
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-6/+6
|
* Introduce GlobalScope::constellation_chanAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-7/+7
|
* More code refactoring (exampleVar to example_var)Arthur Marble2016-09-181-6/+6
|
* Reorder `use` statementsUK9922016-09-091-3/+3
|
* Don't bother with the global in ImageData::get_image_dataAnthony Ramine2016-08-301-1/+1
|
* Fix canvas image tests when using webrender.Glenn Watson2016-08-301-2/+10
| | | | | | When webrender is enabled, image decoding doesn't pre-multiply by alpha, but the canvas code expects the image data to be pre-multiplied form.
* Update euclid to 0.10.1Anthony Ramine2016-08-211-17/+10
|
* Move util::vec::byte_swap to canvas_traitsAnthony Ramine2016-07-041-3/+3
|
* Make canvas send their data themselves to other canvasAnthony Ramine2016-06-161-22/+15
|
* Remove JS::from_rootedAnthony Ramine2016-05-311-2/+2
|
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Remove ConstellationChan.Ms2ger2016-05-191-1/+1
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Removed unused importsPer Lundberg2016-05-151-1/+1
| | | | This fixes #11185.
* Setting current color to black if canvas is not rendered in documentDavid Raifaizen2016-04-221-1/+19
|
* Use num-traits in script.Ms2ger2016-04-201-1/+1
|
* replace Fallible<()> with ErrorResultDi Xu2016-04-131-9/+9
|
* Stop sending the renderer id to script.Ms2ger2016-03-211-1/+1
|
* Remove renderer_id fields.Ms2ger2016-03-211-3/+1
|
* Remove get_renderer_id functions.Ms2ger2016-03-211-9/+0
|
* Update some canvas properties as enums instead of DOMStringSaurav Sachidanand2016-02-191-22/+28
|
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-21/+21
|
* adding image metadata notification capabilities to image cachejmr02016-01-291-1/+1
|
* Remove unused imports in scriptKishor Bhat2016-01-171-1/+0
|
* Add global default method for Reflectable traitChad Kimes2016-01-111-9/+9
|
* Remove global field from CanvasRenderingContext2DChad Kimes2016-01-101-10/+8
|
* task -> threadrohan.prinja2016-01-101-3/+3
|
* Auto merge of #9123 - karyon:clippy_cleanup, r=Manishearthbors-servo2016-01-031-4/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bunch of clippy lints This fixes about 130 clippy lints. Let me know if i should split up the commit. I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :) There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix. cc @Manishearth <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123) <!-- Reviewable:end -->
| * Fix a bunch of clippy lintsJohannes Linke2016-01-021-4/+2
| |
* | Store state of fill or style for canvas patternIszak Bryan2016-01-021-0/+4
|/
* Auto merge of #9109 - nerith:createpattern, r=jdmbors-servo2016-01-011-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support empty strings as the repeat argument (CreatePattern) According to the third step in the specification [1], createPattern should let the repetition argument be "repeat" when it is the empty string. The code in CanvasRenderingContext2D::CreatePattern did not implement this step and instead threw a SyntaxError exception when an empty string was supplied as the repetition argument. Fixes #9079. [1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9109) <!-- Reviewable:end -->
| * Support empty strings as the repeat argument (CreatePattern)Brandon Fairchild2015-12-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the third step in the specification [1], createPattern should let the repetition argument be "repeat" when it is the empty string. The code in CanvasRenderingContext2D::CreatePattern did not implement this step and instead threw a SyntaxError exception when an empty string was supplied as the repetition argument. Fixes #9079. [1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern
* | Enable Pattern variant of CanvasFillOrStrokeStyleAlberto Corona2015-12-291-1/+8
|/ | | | Closes #7608
* Add origin-clean flag tracking for canvasDavid Zbarsky2015-12-171-34/+85
|
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-1/+1
|
* Implement IsPointInPathDavid Zbarsky2015-12-051-1/+14
|
* Reset canvas state when changing bitmap dimensionsDavid Zbarsky2015-11-301-1/+9
|
* Update Canvas webIDL to specDavid Zbarsky2015-11-281-5/+5
|
* Tidy.Simon Sapin2015-11-231-1/+1
|
* Parse currentColor as Canvas2D colorDavid Zbarsky2015-11-211-2/+24
|
* Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdmbors-servo2015-11-191-1/+1
|\ | | | | | | | | | | | | | | | | | | Split ConstellationMsg into ScriptMsg and CompositorMsg Fixes #8356. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530) <!-- Reviewable:end -->
| * Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-1/+1
| |
* | Rustfmt some of script.Ms2ger2015-11-181-105/+220
|/
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-18/+17
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-9/+9
| | | | | | | | | | 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.