Emilio Cobos Álvarez
0c102e2350
style: Unbox a bunch of color properties.
...
This builds on https://github.com/servo/rust-cssparser/pull/118 .
2017-02-14 20:18:31 +01:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Anthony Ramine
cdc7bca944
Move DOMString back to script
...
This entirely removes the 'non-geckolib' feature of the util crate.
2016-05-24 10:54:57 +02:00
David Zbarsky
8408891ec5
Parse currentColor as Canvas2D color
2015-11-21 11:59:19 -08:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
Ms2ger
6b75078503
Make DOMString a newtype around String, rather than a typedef.
...
This should make it somewhat easier to experiment with alternative
representations in the future. To reduce churn, this commit leaves the String
field public, though.
Also, this will allow us to use the default String type to represent the IDL
USVString type, which explicitly forbids unpaired surrogates, ans as such is
a better match to the Rust String type.
2015-11-04 12:09:11 +01:00
rohan.prinja
45224028db
more refactoring
2015-10-30 20:26:29 +09:00
Anthony Urena
ba86131cd5
Refactor Error enum usage to consistently be qualified
2015-10-06 05:43:52 -04:00
Anthony Ramine
709d347872
Make the traits for the IDL interfaces take &self
2015-08-27 22:27:43 +02:00
João Oliveira
fd87c8cb3e
make dom_struct derive HeapSizeOf,
...
closes #7357
2015-08-27 01:17:48 +01:00
Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03:00
David Zbarsky
7315b50973
CanvasGradient#addColorStop should throw for invalid colors and offsets
2015-08-09 23:19:56 -04:00
David Winslow
4cf46bff2d
Refactor #[jstraceable] to #[derive(JSTraceable)]
...
fixes #6524
2015-07-01 18:27:06 -04:00
Michael Wu
675267b782
Upgrade to SM 39
2015-06-19 18:42:48 -04:00
Hyowon Kim
5bbfb42e90
Replace fill_color and stroke_color with fill_style and stroke_style in CanvasContextState.
...
The fillStyle and strokeStyle attributes can be either
strings(color), CanvasGradients, or CanvasPatterns.
2015-06-06 16:15:11 +09: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
Anthony Ramine
e8e7357e99
Fix CanvasGradient.addColorStop()
...
The argument should be a double.
2015-04-27 19:42:48 +02:00
Corey Farwell
cc4a64e1fe
Add/update comments with links to spec
...
Extracted out of #5649
* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
guaranteed to be stable
2015-04-14 18:03:13 -04:00
Corey Farwell
d838fcce30
Remove some unnecessary uses of as_slice
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Tetsuharu OHZEKI
05c6d046dd
Enable unrestricted
types for CanvasRenderingContext2D
.
2015-03-25 15:13:33 +09:00
Mátyás Mustoha
d3199aef74
Implement gradient fill styles for canvas.
2015-03-19 15:59:08 +01:00
Patrick Walton
55a0ee6ec7
script: Implement enough 2D canvas support to render basic SVGs such as the tiger.
2015-02-22 22:29:58 -05:00