mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -197,7 +197,7 @@ fn fmt_with_data_and_primary_values<N: TNode>(f: &mut fmt::Formatter, n: N) -> f
|
|||
let dd = el.has_dirty_descendants();
|
||||
let data = el.borrow_data();
|
||||
let styles = data.as_ref().and_then(|d| d.get_styles());
|
||||
let values = styles.map(|s| &s.primary.values);
|
||||
let values = styles.map(|s| s.primary.values());
|
||||
write!(f, "{:?} dd={} data={:?} values={:?}", el, dd, &data, values)
|
||||
} else {
|
||||
write!(f, "{:?}", n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue