From f70a49974a001e34cb65d55f315702966e29c6c3 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 7 Mar 2017 19:30:51 +0100 Subject: Make PropertyDeclarationBlock fields private --- components/script/dom/cssstyledeclaration.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script') 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 { 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() { -- cgit v1.2.3