style: Not all computed value flags are really inherited.

This fixes the fishiness I noticed in:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1407832
This commit is contained in:
Emilio Cobos Álvarez 2017-10-14 14:44:20 +02:00
parent 8b366a7441
commit b73b5b581b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 11 additions and 3 deletions

View file

@ -360,8 +360,8 @@ trait PrivateMatchMethods: TElement {
debug!(" > style difference: {:?}", difference);
// We need to cascade the children in order to ensure the correct
// propagation of computed value flags.
if old_values.flags != new_values.flags {
// propagation of inherited computed value flags.
if old_values.flags.inherited() != new_values.flags.inherited() {
debug!(" > flags changed: {:?} != {:?}", old_values.flags, new_values.flags);
return ChildCascadeRequirement::MustCascadeChildren;
}