mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Allow the ComputedValues in ComputedStyle to be null.
This is necessary to start synthesizing the styles in match_element and avoid round-tripping them through the caller.
This commit is contained in:
parent
1c530f9279
commit
5873de3fb6
8 changed files with 53 additions and 32 deletions
|
@ -777,7 +777,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
|||
debug_assert!(self.is_text_node());
|
||||
let parent = self.node.parent_node().unwrap().as_element().unwrap();
|
||||
let parent_data = parent.get_data().unwrap().borrow();
|
||||
parent_data.styles().primary.values.clone()
|
||||
parent_data.styles().primary.values().clone()
|
||||
}
|
||||
|
||||
fn debug_id(self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue