Fix Element::set_inline_style_property_priority’s handling of priority

Thanks to mwu for pointing out a copy-paste error.
This commit is contained in:
Simon Sapin 2015-08-13 10:21:28 +02:00
parent 8f55af1190
commit 39ce15f20d
3 changed files with 18 additions and 4 deletions

View file

@ -712,7 +712,7 @@ impl<'a> ElementHelpers<'a> for &'a Element {
let (from, to) = if style_priority == StylePriority::Important {
(&mut declarations.normal, &mut declarations.important)
} else {
(&mut declarations.normal, &mut declarations.important)
(&mut declarations.important, &mut declarations.normal)
};
// Usually, the reference counts of `from` and `to` will be 1 here. But transitions