aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 09:44:21 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-29 12:02:04 +0200
commit68bee1c7717f6219bcace8f6be4de42629687eab (patch)
tree64f4a3cee7816f98f413adc66dab24bf3e548830 /components/script/dom/macros.rs
parent9b2eb775302b84542ab8fea921ab441342fe79c3 (diff)
downloadservo-68bee1c7717f6219bcace8f6be4de42629687eab.tar.gz
servo-68bee1c7717f6219bcace8f6be4de42629687eab.zip
Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_r
Clarify special case for containing_shadow_root and add it to layout accessor
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index de531f0c53f..021527a286a 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -639,6 +639,11 @@ macro_rules! impl_rare_data (
self.rare_data.borrow()
}
+ #[allow(dead_code)]
+ fn rare_data_mut(&self) -> RefMut<Option<Box<$type>>> {
+ self.rare_data.borrow_mut()
+ }
+
fn ensure_rare_data(&self) -> RefMut<Box<$type>> {
let mut rare_data = self.rare_data.borrow_mut();
if rare_data.is_none() {