remove block exception

This commit is contained in:
patrick kim 2014-01-06 19:08:08 +09:00
parent 8eb39aafd4
commit cfd44e4082

View file

@ -248,12 +248,8 @@ impl Box {
nearest_ancestor_element.parent_node().expect("no nearest element?!");
}
if nearest_ancestor_element.style().get().Box.display == display::block {
Arc::new(cascade(&[Arc::new(~[])],
Some(nearest_ancestor_element.style().get())))
} else {
nearest_ancestor_element.style().clone()
}
};
Box {