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
Patrick Walton
6943ddb93e
layout: Implement overflow-wrap
/word-wrap
per CSS-TEXT § 6.2.
...
This property is used by approximately 55% of page loads.
To implement the line breaking behavior, the "breaking strategy" has
been cleaned up and abstracted. This should allow us to easily support
other similar properties in the future, such as `text-overflow` and
`word-break`.
2014-12-13 13:05:05 -08:00
Adenilson Cavalcanti
00f1ae0a1d
Restored older behavior for lighter color, should fix
...
the regression.
2014-12-12 13:51:25 -08:00
Adenilson Cavalcanti
fcc0229d5e
Groove and Ridge rendering shows a solid border when color is black,
...
that is broken and the current patch will implement a similar behavior
as Firefox.
2014-12-12 13:50:40 -08:00
Patrick Walton
1d845ee4f2
gfx: Update Azure and Skia, and rewrite broken clipping logic.
...
This exposed some problems in our clipping logic, which was never
properly rewritten for the stacking context reform. The clipping code
worked in terms of a stack of clips, but the new stacking context code
has no concept of a stack of clip regions. Fixing that in turn exposed
some flaky/incorrect tests:
* `borders` had an incorrect reference image, as far as I can tell.
* `negative_margins` had some stray pixels, fixed by changing the text.
2014-12-08 13:45:51 -08:00
Tetsuharu OHZEKI
f04c64f500
Replace almost "render" to "paint" words in gfx crate.
2014-12-08 14:55:30 +09:00
Tetsuharu OHZEKI
d87def0743
Rename RenderContext -> PaintContext
2014-12-08 14:01:07 +09:00