Hyowon Kim
2e230bdb93
Implement fill and stroke functions for all pattern types and check the zero size gradient.
2015-06-17 09:46:38 +09:00
Corey Farwell
5c408d2be9
rust-geom API changes
...
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00
Corey Farwell
435e551753
Remove get_
prefix on getters
...
Part of #6224
I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
2015-06-02 08:54:44 -04:00
Mátyás Mustoha
f4c0bd3b80
Turn off default antialiasing for most DrawOptions.
2015-05-28 18:42:16 +02:00
Mátyás Mustoha
adef44183d
Enable antialiasing for the canvas.
2015-05-28 11:10:57 +02:00
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00
ecoal95
3350522306
Layerize canvas
...
Note that this keeps using readback right now, `NativeSurface` painting
will be implemented soon.
Also see https://github.com/servo/servo/issues/6142
2015-05-20 19:10:50 +02:00
Simon Sapin
908be6abc2
Rename some to_azure* methods according to what they do.
2015-05-05 20:13:30 +02:00
Simon Sapin
6bf830f663
Remove some unnecessary casts.
2015-05-05 20:11:26 +02:00
Simon Sapin
8b522f2e7d
Rename Au methods with f32/f64 instead of frac32/frac/subpx
2015-05-05 18:23:29 +02:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Ms2ger
903305416a
Implement Clone for Copy types.
2015-04-28 23:31:10 +02:00
Patrick Walton
48299a53cb
layout: Implement most of border-collapse
per CSS 2.1 § 17.6.2.
...
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.
2015-04-27 17:12:07 +02:00
Ms2ger
6a55ae06d7
Remove some as_slice calls.
2015-04-24 17:44:47 +02:00
Adenilson Cavalcanti
2c7edeb2bf
Renaming the color function to just *transparent*,
...
as suggested on review.
2015-04-22 14:51:39 -07:00
bors-servo
1fd6a48cca
Auto merge of #5546 - Adenilson:blurFilter01, r=pcwalton
...
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 -->
2015-04-15 18:56:49 -05:00
Adenilson Cavalcanti
05dd176186
Implementing Blur filter.
2015-04-15 16:15:21 -07:00
Aneesh Agrawal
5b593a3d32
Switch Arc<Box<Image>> to Arc<Image> for perf boost.
...
Image used to be a trait, but no longer is, so boxing it is no longer
necessary.
2015-04-10 18:59:02 -04:00
Josh Matthews
a68fa74f4b
Remove int_uint feature from gfx.
2015-04-07 11:58:28 -04:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Ms2ger
43ed033eff
Use isize/usize in range.
2015-03-28 15:36:36 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Patrick Walton
09c53f461d
layout: Implement image-rendering
per CSS-IMAGES-3 § 5.3 and
...
`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.
2015-03-03 17:54:12 +01:00
Patrick Walton
09358b908d
layout: Implement text-shadow
per CSS-TEXT-DECORATION-3 § 4.
2015-03-02 13:28:51 -08:00
Andreas Gal
ad5671bc14
Use cleaner StrokeOptions interface introduced by https://github.com/servo/rust-azure/pull/145 .
2015-02-20 14:56:23 -08:00
Adenilson Cavalcanti
ffa62c9688
Companion single Color patch.
...
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.
2015-02-13 14:49:28 -08:00
Ms2ger
a09a912178
Import net as net rather than servo_net.
2015-02-10 12:55:24 +01:00
Adenilson Cavalcanti
7a36634963
Using the equality operator in PaintContext. Pay attention this
...
is a change on behavior as we previously didn't test for alpha
channel.
2015-02-03 18:51:50 -08:00
Adenilson Cavalcanti
ffa23088ff
Using the new transparent_black() in the proper places.
2015-02-03 18:08:30 -08:00
Martin Robinson
8855a25780
Revert "Using Color equality operators to streamline code"
2015-02-03 15:07:30 -08:00
Adenilson Cavalcanti
cc404aba1a
Using Color equality operators to streamline code in
...
PaintContext and LayoutTask.
2015-02-03 11:03:09 -08:00
Adenilson Cavalcanti
10418a0ea1
Using color helpers in Compositor and PaintContext
...
(plus added TODO related to equality operators).
2015-02-02 14:49:26 -08:00
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
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.
2015-01-29 12:16:41 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
7eb659371d
Stop calling is_not_null.
...
It has been removed from Rust.
2015-01-20 13:08:49 +01:00
Patrick Walton
97d3443003
layout: Implement mix-blend-mode
per COMPOSITING § 3.4.1.
...
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.
2015-01-12 08:02:41 -08:00
Patrick Walton
15d60d7ea4
layout: Implement filter
per CSS-FILTERS § 5.
...
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.
2015-01-09 07:26:13 -08:00
Matthew Rasmus
c9325c9711
Fix use {f32,f64}::consts
warning
2015-01-08 08:51:10 -08:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
1130c1dced
Qualify PixelsByColorType.
2015-01-04 15:18:19 +01:00
Ms2ger
d759b07299
Qualify libstyle enums.
2015-01-04 15:04:35 +01:00
Ms2ger
9068e62f2a
Qualify Azure enums.
2015-01-04 15:04:26 +01:00
Patrick Walton
cc7cacfd5f
gfx: Clip the background properly when border-radius
is used.
...
Improves Reddit, GitHub, etc.
2014-12-22 14:48:55 -08:00
Patrick Walton
b22b29533a
gfx: Fix a nasty bug whereby the transient clip was not always removed,
...
causing elements to be randomly clipped out.
Improves Wikipedia, Reddit, etc.
2014-12-22 14:48:55 -08:00
Patrick Walton
dea8375613
gfx: Refactor the border drawing code and split out fragment display
...
list building into multiple functions.
This should have no functional changes; it's just code cleanup.
2014-12-22 14:48:55 -08:00
Adenilson Cavalcanti
4bfe134c84
Similar to groove/ridge case, inset/outset would scale the color to
...
decorate the border. Scale fails when the color is black (i.e. zero),
thus this patch will fix this issue by using a fixed color.
2014-12-18 13:54:32 -08:00
Simon Sapin
084a63df45
Remove usage of the deprecated std::num::Zero trait.
2014-12-18 11:16:47 +00:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Adenilson Cavalcanti
0e24194d81
Inset and outset border coloring is incorrect on left side border.
...
This patch will fix this issue.
2014-12-16 12:01:43 -08:00
Patrick Walton
3ba0abd8ff
gfx: Implement box-shadow
per CSS-BACKGROUNDS.
2014-12-15 13:39:06 -08:00