diff options
author | bors-servo <release+servo@mozilla.com> | 2014-04-27 18:52:39 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-04-27 18:52:39 -0400 |
commit | 493aa2cdf30fb2ff5886c714030a20d714764b67 (patch) | |
tree | 513345ea70f134bf4a85d8e2cdbe166bfee904f6 /src/components/script/dom/clientrectlist.rs | |
parent | 4942cc76bd2c88e5fdc2b4de4c1ac4576100b455 (diff) | |
parent | 948daf242278b22d7a15c1c594129785d1cff538 (diff) | |
download | servo-493aa2cdf30fb2ff5886c714030a20d714764b67.tar.gz servo-493aa2cdf30fb2ff5886c714030a20d714764b67.zip |
auto merge of #2238 : mozilla/servo/rustup_20140410c, r=Ms2ger
r? @metajack
Note that all pending submodule PRs must be landed before this should be given r+.
Diffstat (limited to 'src/components/script/dom/clientrectlist.rs')
-rw-r--r-- | src/components/script/dom/clientrectlist.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/clientrectlist.rs b/src/components/script/dom/clientrectlist.rs index 3d8ade6031f..9095819edbf 100644 --- a/src/components/script/dom/clientrectlist.rs +++ b/src/components/script/dom/clientrectlist.rs @@ -10,9 +10,9 @@ use dom::window::Window; #[deriving(Encodable)] pub struct ClientRectList { - reflector_: Reflector, - rects: ~[JS<ClientRect>], - window: JS<Window>, + pub reflector_: Reflector, + pub rects: ~[JS<ClientRect>], + pub window: JS<Window>, } impl ClientRectList { @@ -37,7 +37,7 @@ impl ClientRectList { pub fn Item(&self, index: u32) -> Option<JS<ClientRect>> { if index < self.rects.len() as u32 { - Some(self.rects[index].clone()) + Some(self.rects[index as uint].clone()) } else { None } |