aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/CanvasRenderingContext2D.webidl
Commit message (Collapse)AuthorAgeFilesLines
* script: Move code generation and webidl files to new script_bindings crate. ↵Josh Matthews2025-01-241-264/+0
| | | | | (#35157) Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* api: Flatten and simplify Servo preferences (#34966)Martin Robinson2025-01-141-2/+2
| | | | | | | | | | | | | | | | | | | Flatten and simplify Servo's preferences code. In addition, have both preferences and options passed in as arguments to `Servo::new()` and make sure not to use the globally set preferences in `servoshell` (as much as possible now). Instead of a complex procedural macro to generate preferences, just expose a very simple derive macro that adds string based getters and setters. - All command-line parsing is moved to servoshell. - There is no longer the concept of a missing preference. - Preferences no longer have to be part of the resources bundle because they now have reasonable default values. - servoshell specific preferences are no longer part of the preferences exposed by the Servo API. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* WebIDL: Use Uint8ClampedArray instead of raw JSObject in bindings (#31317)Taym Haddadi2024-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WebIDL: Use Uint8ClampedArray instead of raw JSObject in bindings Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * fmt Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * introduce new_initialized_heap_typed_array function Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove unsed unsafe_code Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Use doc comments for ImageData Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Use get_internal instead of acquire_data Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Handle JS errors in ImageData GetData and new_initialized_heap_typed_array Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Fix wrong assert that causes CRASH in test Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Early return for error Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Address review comments Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* canvas2d: Implement `.reset()` (#31258)Smitty2024-02-051-0/+1
| | | | | | | | | | | * Implement Canvas2D reset * Update WPT tests * Apply suggestions from code review --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Clean up and merge some canvas-related WebIDLs (#30606)Ennui Langeweile2023-10-261-16/+27
| | | | | | | * Clean up and merge some canvas-related WebIDLs * Apply `./mach fmt` * WebIDL has `test-tidy` support???
* Rename legacy extended attributes in webidlssagudev2023-02-191-1/+1
| | | | https://github.com/whatwg/webidl/pull/870
* Convert Web IDL void to undefinedKagami Sascha Rosylight2022-01-051-30/+30
| | | | Fixes #27660
* dom: Use pref macro for IDL conditional guards.Josh Matthews2020-07-091-2/+2
|
* Enable textAlign, textBaseline and direction attributes for canvasUtsav Oza2020-06-101-3/+3
|
* Query layout to resolve canvas font property valueUtsav Oza2020-06-101-1/+1
|
* Implement CanvasRenderingContext2D.getTransform()pylbrecht2020-02-121-1/+1
|
* Make create_pattern() return None for incomplete imagespylbrecht2020-02-101-1/+1
|
* Addresses Issue: Support OffscreenCanvas as CanvasImageSource #24269Bailey Blankenship2019-12-041-1/+1
| | | | | | 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
* Migrate to IDL mixin syntaxKagami Sascha Rosylight2019-10-011-49/+49
|
* Temporary implementation of Canvas.MeasureTextPaul Rouget2019-09-251-1/+2
|
* Extract canvas operations for reuse by OffscreenCanvas.Maharsh2019-05-221-14/+14
|
* Created CanvasRect fro OffscreenCanvas and Updated TestcasesMaharsh2019-03-291-1/+1
|
* Update MPL license to https (part 2)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-061-2/+2
|
* Align canvas.putImageData with specAnthony Ramine2018-10-051-4/+4
| | | | The arguments are supposed to be long values, not floats.
* Update CanvasRenderingContext2D WebIDL definitionAnthony Ramine2018-09-141-64/+43
| | | | CanvasImageSource was never supposed to include CanvasRenderingContext2D.
* Implement Ellipse Canvas 2D APIJoone Hur2017-09-011-0/+5
| | | | | | | | | * Update rust-azure to 0.21.0 * Mark the following test case as fail: tests/wpt/mozilla/tests/mozilla/css-paint-api/background-image-tiled.html * Make the ellipse test case pass. BUG: https://github.com/servo/servo/issues/17598
* Implement CanvasRenderingContext2d.fillText's "unimplemented" messageBruno Bernardino2017-08-231-3/+3
|
* Implement drawing an image from a CSS style value into a canvas.Alan Jeffrey2017-07-211-2/+5
|
* Implemented paint worklet rendering context.Alan Jeffrey2017-06-301-11/+11
|
* Partial fix for #12415: expose Canvas interfacesScott Trinh2016-10-131-16/+15
|
* Explicitly expose everything everywhere.Ms2ger2016-07-121-17/+18
|
* Remove modelines everywhere but tests/wptedunham2016-04-201-1/+0
|
* updating the CanvasRenderingContext2D to match the specGregory Malecha2016-03-011-4/+66
| | | | - fixes #9443
* Update some canvas properties as enums instead of DOMStringSaurav Sachidanand2016-02-191-5/+11
|
* Implement IsPointInPathDavid Zbarsky2015-12-051-5/+4
|
* Update Canvas webIDL to specDavid Zbarsky2015-11-281-20/+22
|
* Explicitly place '/' before fragment for multipage spec linksCorey Farwell2015-10-101-1/+1
| | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost
* Replace usage of old-style WHATWG spec linksCorey Farwell2015-10-101-1/+1
|
* Make createRadialGradient throw for negative radiiDavid Zbarsky2015-08-041-0/+1
|
* Clean up some methods in CanvasRendeingContext2DDavid Zbarsky2015-08-031-5/+3
|
* Clean up whitespace, long lines for WebIDLsCorey Farwell2015-07-261-11/+23
|
* Implementation of pattern fill style for canvas.Hyowon Kim2015-06-131-1/+2
|
* Add attributes for canvas shadows.Hyowon Kim2015-06-121-4/+4
|
* Canvas: implement transformation matrix reset.Mátyás Mustoha2015-05-061-1/+1
|
* Canvas: implement transformation matrix rotation.Mátyás Mustoha2015-05-061-1/+1
|
* Canvas: implement global composition and blending.Mátyás Mustoha2015-04-221-1/+1
|
* Canvas: add clipping path support.Mátyás Mustoha2015-04-221-1/+1
|
* Canvas: implement rectangle drawing.Mátyás Mustoha2015-04-211-1/+1
|
* Canvas: implement context state save/restore.Mátyás Mustoha2015-04-191-2/+2
|
* Canvas: added lineCap and lineJoin support.Mátyás Mustoha2015-04-141-2/+2
|
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-1/+1
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Canvas: added miterLimit support.Mátyás Mustoha2015-04-091-1/+1
|
* Canvas: added support for the globalAlpha attribute.Mátyás Mustoha2015-04-081-1/+1
|
* Auto merge of #5562 - mmatyas:canvas_linewidth, r=jdmbors-servo2015-04-081-0/+21
|\ | | | | | | Rebase of #5488