diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-07 19:30:51 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-07 23:37:32 +0100 |
commit | f70a49974a001e34cb65d55f315702966e29c6c3 (patch) | |
tree | 6b6650f7f4309b3cb522168ef61a5389a4c7552c /components/script | |
parent | da4e5146e97078ac1cf1b6ed28748bf581b4bdeb (diff) | |
download | servo-f70a49974a001e34cb65d55f315702966e29c6c3.tar.gz servo-f70a49974a001e34cb65d55f315702966e29c6c3.zip |
Make PropertyDeclarationBlock fields private
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/cssstyledeclaration.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs index dc53a58c8c5..8af3b3975d2 100644 --- a/components/script/dom/cssstyledeclaration.rs +++ b/components/script/dom/cssstyledeclaration.rs @@ -67,7 +67,7 @@ impl CSSStyleOwner { // Here `changed` is somewhat silly, because we know the // exact conditions under it changes. - changed = !pdb.declarations.is_empty(); + changed = !pdb.declarations().is_empty(); if changed { attr = Some(Arc::new(RwLock::new(pdb))); } @@ -274,7 +274,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { // https://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-length fn Length(&self) -> u32 { self.owner.with_block(|pdb| { - pdb.declarations.len() as u32 + pdb.declarations().len() as u32 }) } @@ -399,7 +399,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { // https://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface fn IndexedGetter(&self, index: u32) -> Option<DOMString> { self.owner.with_block(|pdb| { - pdb.declarations.get(index as usize).map(|entry| { + pdb.declarations().get(index as usize).map(|entry| { let (ref declaration, importance) = *entry; let mut css = declaration.to_css_string(); if importance.important() { |