style: Kill StoredRestyleHint.

Reviewed-By: bholley
Bug: 1368236
MozReview-Commit-ID: 43Cf0rJyhzO
This commit is contained in:
Emilio Cobos Álvarez 2017-06-13 12:45:04 +02:00
parent c6da6ba060
commit f9c268922d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 47 additions and 108 deletions

View file

@ -6,7 +6,7 @@
use atomic_refcell::AtomicRefCell;
use context::{SharedStyleContext, StyleContext, ThreadLocalStyleContext};
use data::{ElementData, ElementStyles, StoredRestyleHint};
use data::{ElementData, ElementStyles};
use dom::{DirtyDescendants, NodeInfo, OpaqueNode, TElement, TNode};
use invalidation::element::restyle_hints::{RECASCADE_SELF, RECASCADE_DESCENDANTS, RestyleHint};
use matching::{ChildCascadeRequirement, MatchMethods};
@ -691,7 +691,7 @@ pub fn recalc_style_at<E, D>(traversal: &D,
// Now that matching and cascading is done, clear the bits corresponding to
// those operations and compute the propagated restyle hint.
let mut propagated_hint = match data.get_restyle_mut() {
None => StoredRestyleHint::empty(),
None => RestyleHint::empty(),
Some(r) => {
debug_assert!(context.shared.traversal_flags.for_animation_only() ||
!r.hint.has_animation_hint(),
@ -842,7 +842,7 @@ fn compute_style<E, D>(_traversal: &D,
fn preprocess_children<E, D>(context: &mut StyleContext<E>,
element: E,
propagated_hint: StoredRestyleHint,
propagated_hint: RestyleHint,
damage_handled: RestyleDamage)
where E: TElement,
D: DomTraversal<E>,