mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
style: Fix a typo that makes us resolve styles for the whole spin to the root.
For undisplayed elements, at least.
This commit is contained in:
parent
17f99e2a7b
commit
1316f3640b
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ where
|
|||
let mut ancestor = element.traversal_parent();
|
||||
while let Some(current) = ancestor {
|
||||
if rule_inclusion == RuleInclusion::All {
|
||||
if let Some(data) = element.borrow_data() {
|
||||
if let Some(data) = current.borrow_data() {
|
||||
if let Some(ancestor_style) = data.styles.get_primary() {
|
||||
style = Some(ancestor_style.clone());
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue