aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/canvasgradient.rs
Commit message (Collapse)AuthorAgeFilesLines
* Parse currentColor as Canvas2D colorDavid Zbarsky2015-11-211-4/+12
|
* Rustfmt some of script.Ms2ger2015-11-181-12/+17
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+2
| | | | | | | | | | 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.
* more refactoringrohan.prinja2015-10-301-1/+1
|
* Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-4/+3
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-2/+2
|
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-1/+2
|
* CanvasGradient#addColorStop should throw for invalid colors and offsetsDavid Zbarsky2015-08-091-8/+12
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-2/+1
| | | | fixes #6524
* Upgrade to SM 39Michael Wu2015-06-191-6/+6
|
* Replace fill_color and stroke_color with fill_style and stroke_style in ↵Hyowon Kim2015-06-061-0/+1
| | | | | | | CanvasContextState. The fillStyle and strokeStyle attributes can be either strings(color), CanvasGradients, or CanvasPatterns.
* 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
* Fix CanvasGradient.addColorStop()Anthony Ramine2015-04-271-1/+1
| | | | The argument should be a double.
* Add/update comments with links to specCorey Farwell2015-04-141-0/+2
| | | | | | | | | | 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
* Remove some unnecessary uses of `as_slice`Corey Farwell2015-03-291-1/+1
| | | | | | | | | | | 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
* Enable `unrestricted` types for `CanvasRenderingContext2D`.Tetsuharu OHZEKI2015-03-251-2/+3
|
* Implement gradient fill styles for canvas.Mátyás Mustoha2015-03-191-1/+71
|
* script: Implement enough 2D canvas support to render basic SVGs such as the ↵Patrick Walton2015-02-221-0/+11
tiger.