aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/paint_context.rs
Commit message (Collapse)AuthorAgeFilesLines
...
| * gfx: Paint dashed borders with nonzero radii the same way Gecko does.Patrick Walton2015-08-141-26/+106
| | | | | | | | | | | | It's not ideal, but it was easy to implement and will do for now. Closes #7157.
* | Fix existing syntactics nits.Josh Matthews2015-08-161-8/+8
| |
* | Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-2/+2
|/ | | | closes #7197
* Snap rectangles to nearest pixels consistently.Matt Brubeck2015-08-111-12/+7
| | | | | | | | | Snapping the top-left and bottom-right corners separately can cause a rectangle to change size when offset by a subpixel amount. Instead, this patch snaps the top-left corner, then rounds the size to a whole pixel amount, so any rectangle of a given size will always have the same snapped size. Fixes #7152.
* Replace Arc<Box<TextRun>> with Arc<TextRun>Matt Brubeck2015-08-051-2/+2
|
* Implement strokeRect with zero-width or zero-height rectsDavid Zbarsky2015-08-041-1/+1
|
* Basic support for bidirectional textMatt Brubeck2015-07-231-1/+1
|
* Remove unused mut.Michael Tremel2015-07-141-1/+1
|
* gfx: Round out when snapping rects to the nearest pixel.Patrick Walton2015-07-071-1/+6
| | | | Fixes `insert-inline-in-blocks-n-inlines-end-001` in the WPT tests.
* Auto merge of #6487 - pcwalton:background-tiling, r=glennwbors-servo2015-07-071-15/+68
|\ | | | | | | | | | | | | | | | | | | gfx: Use a pattern instead of tiling images manually. r? @SimonSapin <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6487) <!-- Reviewable:end -->
| * gfx: Use a pattern instead of tiling images manually.Patrick Walton2015-07-071-15/+68
| |
* | Add servo Image type. Remove rust-png dependency from script, gfx, layout.Glenn Watson2015-07-071-8/+7
|/
* Fix build warnings.Ms2ger2015-07-041-1/+1
|
* Implement enough of 3d transforms spec to run the CSS FPS demo.Glenn Watson2015-06-231-0/+3
|
* Use euclid from crates.ioecoal952015-06-191-5/+5
|
* Implement fill and stroke functions for all pattern types and check the zero ↵Hyowon Kim2015-06-171-3/+5
| | | | size gradient.
* rust-geom API changesCorey Farwell2015-06-131-97/+97
| | | | https://github.com/servo/rust-geom/pull/81
* Remove `get_` prefix on gettersCorey Farwell2015-06-021-10/+9
| | | | | | Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
* Turn off default antialiasing for most DrawOptions.Mátyás Mustoha2015-05-281-7/+7
|
* Enable antialiasing for the canvas.Mátyás Mustoha2015-05-281-16/+12
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-3/+5
| | | | Part of https://github.com/servo/servo/issues/6041
* Layerize canvasecoal952015-05-201-1/+1
| | | | | | | Note that this keeps using readback right now, `NativeSurface` painting will be implemented soon. Also see https://github.com/servo/servo/issues/6142
* Rename some to_azure* methods according to what they do.Simon Sapin2015-05-051-24/+24
|
* Remove some unnecessary casts.Simon Sapin2015-05-051-9/+9
|
* Rename Au methods with f32/f64 instead of frac32/frac/subpxSimon Sapin2015-05-051-15/+15
|
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+0
|
* Implement Clone for Copy types.Ms2ger2015-04-281-2/+2
|
* layout: Implement most of `border-collapse` per CSS 2.1 § 17.6.2.Patrick Walton2015-04-271-6/+4
| | | | | | | | | | | | | | | | Known issues: * Collapsed borders do not correctly affect the border-box of the table itself. * The content widths of all cells in a column and the content height of all cells in a row is the same in this patch, but not in Gecko and WebKit. * Corners are not painted well. The spec does not say what to do here. * Column spans are not handled well. The spec does not say what to do here either.
* Remove some as_slice calls.Ms2ger2015-04-241-2/+2
|
* Renaming the color function to just *transparent*,Adenilson Cavalcanti2015-04-221-1/+1
| | | | as suggested on review.
* Auto merge of #5546 - Adenilson:blurFilter01, r=pcwaltonbors-servo2015-04-151-7/+43
|\ | | | | | | | | | | | | | | See discussion on #5190 and #5496. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5546) <!-- Reviewable:end -->
| * Implementing Blur filter.Adenilson Cavalcanti2015-04-151-7/+43
| |
* | Switch Arc<Box<Image>> to Arc<Image> for perf boost.Aneesh Agrawal2015-04-101-1/+1
|/ | | | | Image used to be a trait, but no longer is, so boxing it is no longer necessary.
* Remove int_uint feature from gfx.Josh Matthews2015-04-071-5/+5
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-1/+1
| | | | Fixes #4476
* Use isize/usize in range.Ms2ger2015-03-281-1/+1
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-3/+6
|
* layout: Implement `image-rendering` per CSS-IMAGES-3 § 5.3 andPatrick Walton2015-03-031-3/+16
| | | | | | | | | `background-size` per CSS-BACKGROUNDS § 3.9. Nearest neighbor interpolation is used for `crisp-edges`, like Firefox. A note has been added that we could do better if we wanted to. Multiple backgrounds are not yet supported.
* layout: Implement `text-shadow` per CSS-TEXT-DECORATION-3 § 4.Patrick Walton2015-03-021-109/+192
|
* Use cleaner StrokeOptions interface introduced by ↵Andreas Gal2015-02-201-14/+9
| | | | https://github.com/servo/rust-azure/pull/145.
* Companion single Color patch.Adenilson Cavalcanti2015-02-131-7/+10
| | | | | | | This will also update the rust-azure dependency to point to the hash where we have a single Color type. Just executed ref-tests and no regressions found.
* Import net as net rather than servo_net.Ms2ger2015-02-101-1/+1
|
* Using the equality operator in PaintContext. Pay attention thisAdenilson Cavalcanti2015-02-031-5/+3
| | | | | is a change on behavior as we previously didn't test for alpha channel.
* Using the new transparent_black() in the proper places.Adenilson Cavalcanti2015-02-031-1/+1
|
* Revert "Using Color equality operators to streamline code"Martin Robinson2015-02-031-2/+4
|
* Using Color equality operators to streamline code inAdenilson Cavalcanti2015-02-031-4/+2
| | | | PaintContext and LayoutTask.
* Using color helpers in Compositor and PaintContextAdenilson Cavalcanti2015-02-021-6/+8
| | | | (plus added TODO related to equality operators).
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-3/+3
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-4/+4
|
* Stop calling is_not_null.Ms2ger2015-01-201-1/+1
| | | | It has been removed from Rust.