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:
Emilio Cobos Álvarez 2017-07-16 16:31:53 +02:00
parent 17f99e2a7b
commit 1316f3640b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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;