diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-02-22 12:35:52 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-02-22 22:29:58 -0500 |
commit | 55a0ee6ec75960879c20aea7d4b68a8bbdda1560 (patch) | |
tree | 716dd5e78d47d2015526865487ef1f57531ee6ce /components/script/dom/canvaspattern.rs | |
parent | 287f390c4a56dd8c5960df699d45653227b25d6f (diff) | |
download | servo-55a0ee6ec75960879c20aea7d4b68a8bbdda1560.tar.gz servo-55a0ee6ec75960879c20aea7d4b68a8bbdda1560.zip |
script: Implement enough 2D canvas support to render basic SVGs such as the tiger.
Diffstat (limited to 'components/script/dom/canvaspattern.rs')
-rw-r--r-- | components/script/dom/canvaspattern.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/canvaspattern.rs b/components/script/dom/canvaspattern.rs new file mode 100644 index 00000000000..f1010bf6f53 --- /dev/null +++ b/components/script/dom/canvaspattern.rs @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +use dom::bindings::utils::Reflector; + +#[dom_struct] +pub struct CanvasPattern { + reflector_: Reflector, +} + + |