mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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
This commit is contained in:
parent
9b2eb77530
commit
68bee1c771
6 changed files with 95 additions and 89 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue