Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -7/+9 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | remove `extern crate` (#30311) | Samson | 2023-09-08 | 1 | -0/+1 |
| | | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com> | ||||
* | Try to `use` WebRender types more | Martin Robinson | 2023-07-10 | 1 | -9/+10 |
| | | | | | The newer versions of WebRender move types around between `webrender` and `webrender_api` and this will reduce the churn during the upgrade. | ||||
* | Further changes required by Servo | Oriol Brufau | 2023-05-24 | 1 | -0/+2 |
| | |||||
* | Bump euclid to 0.22 | Martin Robinson | 2023-01-26 | 1 | -4/+4 |
| | | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed. | ||||
* | When instantiating a CTFont, store the bytes that were used to create it. | Josh Matthews | 2020-08-07 | 1 | -10/+4 |
| | |||||
* | canvas: Bail out from font loading if no default font can be loaded. | Josh Matthews | 2020-07-06 | 1 | -9/+20 |
| | |||||
* | style: fix formatting. | Emilio Cobos Álvarez | 2020-06-18 | 1 | -5/+3 |
| | |||||
* | style: Remove the dependency on font-kit from style. | Emilio Cobos Álvarez | 2020-06-18 | 1 | -6/+33 |
| | | | | No good reason to have this IMO, and helps remove some #[cfg] blocks. | ||||
* | Auto merge of #26697 - utsavoza:ugo/issue-11681/22-05-2020, r=jdm | bors-servo | 2020-06-12 | 1 | -8/+226 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement CanvasRenderingContext2d.fillText The PR consists of broadly two main changes: - Implementation of Canvas2dRenderingContext.font - Basic implementation of Canvas2dRenderingContext.fillText Although I am not fully sure about the long term goals for the canvas backend in Servo, I assumed limited scope for font and text handling (should support simple text drawing with font selection) in the current implementation as I believe a more complete implementation would eventually be brought in as a part of #22957. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #11681 - [x] There are tests for these changes | ||||
| * | Derive Serialize and Deserialize traits for font styles for ↵ | Utsav Oza | 2020-06-12 | 1 | -3/+1 |
| | | | | | | | | #[cfg_attr(feature = "servo")] | ||||
| * | Fix ./mach build --release --with-layout-2020 | Utsav Oza | 2020-06-10 | 1 | -20/+107 |
| | | |||||
| * | Enable textAlign, textBaseline and direction attributes for canvas | Utsav Oza | 2020-06-10 | 1 | -27/+126 |
| | | |||||
| * | Implement CanvasRenderingContext2D.font property | Utsav Oza | 2020-06-10 | 1 | -0/+6 |
| | | |||||
| * | Revert unnecessary changes | Utsav Oza | 2020-06-10 | 1 | -34/+34 |
| | | |||||
| * | Basic implementation of canvas.fillText | Utsav Oza | 2020-06-10 | 1 | -4/+32 |
| | | |||||
| * | Check for valid arguments before processing canvas.fillText | Utsav Oza | 2020-06-10 | 1 | -35/+35 |
| | | |||||
* | | canvas: Don't panic if webrender isn't reachable. | Josh Matthews | 2020-06-10 | 1 | -1/+4 |
|/ | |||||
* | Proxy all WR interactions for layout/font/script/canvas threads to the ↵ | Josh Matthews | 2020-06-09 | 1 | -20/+15 |
| | | | | | | | compositor thread. There is now a single RenderApi that is used, and all transactions are serialized through the compositor. | ||||
* | update rust toolchain | Kunal Mohan | 2020-05-21 | 1 | -1/+1 |
| | |||||
* | Convert all uses of UpdateResources api to use webrender transactions. | Josh Matthews | 2020-05-11 | 1 | -2/+5 |
| | |||||
* | Update euclid | Manish Goregaokar | 2020-04-07 | 1 | -17/+1 |
| | |||||
* | Revert "Add a simple implementation of CanvasRenderingContext2d.fillText" | Paul Rouget | 2020-03-24 | 1 | -22/+4 |
| | | | | Windows crash: https://github.com/servo/servo/issues/26015 | ||||
* | Add a simple implementation of CanvasRenderingContext2d.fillText | kaiakz | 2020-03-19 | 1 | -4/+22 |
| | |||||
* | Auto merge of #25863 - servo:synup, r=jdm | bors-servo | 2020-03-05 | 1 | -2/+1 |
|\ | | | | | | | Remove syn 0.15 from our crate graph | ||||
| * | Remove syn 0.15 from our crate graph (fixes #24421) | Anthony Ramine | 2020-03-05 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr | ||||
* | | Make fill_rect() draw patterns correctly | pylbrecht | 2020-03-03 | 1 | -7/+36 |
|/ | |||||
* | Remove azure canvas backend | Daniel Alley | 2020-02-25 | 1 | -44/+4 |
| | | | | closes #25833 | ||||
* | Implement CanvasRenderingContext2D.getTransform() | pylbrecht | 2020-02-12 | 1 | -0/+4 |
| | |||||
* | Create new subpath with origin after drawing rect | pylbrecht | 2020-01-19 | 1 | -6/+11 |
| | | | | | Step 4 has been missing. https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-rect | ||||
* | Add first control point if there's no subpath | pylbrecht | 2020-01-16 | 1 | -2/+5 |
| | |||||
* | Ensure subpath for control point in quadratic_curve_to() | pylbrecht | 2020-01-07 | 1 | -0/+3 |
| | |||||
* | Ensure there's a subpath for the first control point | pylbrecht | 2020-01-06 | 1 | -1/+4 |
| | |||||
* | Add a layer to store Pattern related information | pylbrecht | 2019-12-17 | 1 | -9/+1 |
| | | | | | | | | Some information of `canvas_data::Pattern` was lost by converting it to `raqote::Source` due to the fact that Raqote did not store this information (e.g. linear gradient's start/end points). We introduce another layer to keep this information for later use (like in `is_zero_size_gradient()`). | ||||
* | Implement "repeat-x" and "repeat-y" for images | pylbrecht | 2019-12-17 | 1 | -1/+9 |
| | |||||
* | Handle empty paths in PathBuilder::get_current_point() | pylbrecht | 2019-12-17 | 1 | -3/+5 |
| | | | | | The case of calling get_current_point() on empty paths has not been handled and caused panics. | ||||
* | Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensions | Bailey Blankenship | 2019-11-10 | 1 | -7/+39 |
| | | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code | ||||
* | Implement create_gradient_stops() | pylbrecht | 2019-08-29 | 1 | -2/+2 |
| | |||||
* | Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) | Simon Sapin | 2019-08-23 | 1 | -1/+1 |
| | |||||
* | Implement a few functions to make tests in draw-image and draw-path pass | Bastien Orivel | 2019-08-21 | 1 | -3/+3 |
| | |||||
* | WIP: Fix azure backend | Bastien Orivel | 2019-08-21 | 1 | -1/+1 |
| | |||||
* | Imlplement get_composition_op | Bastien Orivel | 2019-08-21 | 1 | -1/+1 |
| | |||||
* | Set the line cap to butt when drawing a rect with a 0 width/height | Bastien Orivel | 2019-08-21 | 1 | -1/+3 |
| | | | | | Otherwise raqote will draw the cap even though it shouldn't because the spec says so | ||||
* | Implement clear_rect | Bastien Orivel | 2019-08-21 | 1 | -2/+2 |
| | |||||
* | Implement need_to_draw_shadow | Bastien Orivel | 2019-08-21 | 1 | -1/+1 |
| | |||||
* | Implement fill() for raqote::DrawTarget | pylbrecht | 2019-08-21 | 1 | -4/+4 |
| | |||||
* | Deal with fallout from mutable trait method change. | Josh Matthews | 2019-08-21 | 1 | -16/+18 |
| | |||||
* | WIP: Make GenericPathBuilder's methods take &mut self | pylbrecht | 2019-08-21 | 1 | -10/+16 |
| | |||||
* | Make GenericPathBuilder take &mut self | pylbrecht | 2019-08-21 | 1 | -35/+43 |
| | |||||
* | Implement StrokeOptions | pylbrecht | 2019-08-21 | 1 | -1/+1 |
| |