style: Temporarily force selector matching for style attribute restyles.

The test failures on try were because of this.
This commit is contained in:
Emilio Cobos Álvarez 2017-01-29 14:20:42 +01:00
parent f48328edfe
commit 0b2c32a45a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -203,7 +203,7 @@ impl From<RestyleHint> for StoredRestyleHint {
use self::DescendantRestyleHint::*;
debug_assert!(!hint.contains(RESTYLE_LATER_SIBLINGS), "Caller should apply sibling hints");
StoredRestyleHint {
restyle_self: hint.contains(RESTYLE_SELF),
restyle_self: hint.contains(RESTYLE_SELF) || hint.contains(RESTYLE_STYLE_ATTRIBUTE),
descendants: if hint.contains(RESTYLE_DESCENDANTS) { Descendants } else { Empty },
}
}