mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
remove block exception
This commit is contained in:
parent
8eb39aafd4
commit
cfd44e4082
1 changed files with 2 additions and 6 deletions
|
@ -248,12 +248,8 @@ impl Box {
|
||||||
nearest_ancestor_element.parent_node().expect("no nearest element?!");
|
nearest_ancestor_element.parent_node().expect("no nearest element?!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if nearest_ancestor_element.style().get().Box.display == display::block {
|
Arc::new(cascade(&[Arc::new(~[])],
|
||||||
Arc::new(cascade(&[Arc::new(~[])],
|
Some(nearest_ancestor_element.style().get())))
|
||||||
Some(nearest_ancestor_element.style().get())))
|
|
||||||
} else {
|
|
||||||
nearest_ancestor_element.style().clone()
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue