aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/imagedata.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-04-11 11:35:40 -0700
committerCorey Farwell <coreyf@rwell.org>2015-04-14 18:03:13 -0400
commitcc4a64e1feb4e4a94621374f993ba548ab3681ff (patch)
treeac9041361e143795e170ce026c334745475ac8b9 /components/script/dom/imagedata.rs
parent7f422e2076e7ebc9949e9fb2ffc3f09c653130c0 (diff)
downloadservo-cc4a64e1feb4e4a94621374f993ba548ab3681ff.tar.gz
servo-cc4a64e1feb4e4a94621374f993ba548ab3681ff.zip
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
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r--components/script/dom/imagedata.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs
index 4b1bccab86c..34bebafb082 100644
--- a/components/script/dom/imagedata.rs
+++ b/components/script/dom/imagedata.rs
@@ -73,14 +73,17 @@ impl<'a> ImageDataHelpers for JSRef<'a, ImageData> {
}
impl<'a> ImageDataMethods for JSRef<'a, ImageData> {
+ // https://html.spec.whatwg.org/multipage/#dom-imagedata-width
fn Width(self) -> u32 {
self.width
}
+ // https://html.spec.whatwg.org/multipage/#dom-imagedata-height
fn Height(self) -> u32 {
self.height
}
+ // https://html.spec.whatwg.org/multipage/#dom-imagedata-data
fn Data(self, _: *mut JSContext) -> *mut JSObject {
self.data
}