Add an FFI which returns computed values for a given declaration block with/without parent_style. r?heycam

The function uses document's default computed values if the parent style
is not specified.
This commit is contained in:
Hiroyuki Ikezoe 2017-04-14 23:39:16 +09:00
parent 39d3c22edc
commit bd066af640
3 changed files with 52 additions and 1 deletions

View file

@ -369,7 +369,7 @@ impl PropertyDeclarationBlock {
return false
}
}
self.declarations.iter().any(|&&(ref decl, _)|
self.declarations.iter().any(|&(ref decl, _)|
decl.id().is_or_is_longhand_of(property) &&
decl.get_css_wide_keyword().is_some()
)