Bug 1367225 - Animation-only restyle should be also processed in all the kinds of traversal. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 24 May 2017 06:21:12 +0900
changeset 583240 4b3dbb483f79b69018f70ae4872ae7b4455d222d
parent 583239 c3bbdeee1d7afe093a1b2d28869fa3c0bb1a9a32
child 630008 c84544a7921c94d2cfbc544c9264f02187e725cb
push id60341
push userhikezoe@mozilla.com
push dateTue, 23 May 2017 21:21:45 +0000
reviewersbirtles
bugs1367225
milestone55.0a1
Bug 1367225 - Animation-only restyle should be also processed in all the kinds of traversal. r?birtles We should process animation-only restyle in UNSTYLED_CHILDREN_ONLY, FOR_CSS_RULE_CHANGES and FOR_RECONSTRUCT. MozReview-Commit-ID: 2S8AbSPTJlo
servo/components/style/traversal.rs
--- a/servo/components/style/traversal.rs
+++ b/servo/components/style/traversal.rs
@@ -42,17 +42,17 @@ bitflags! {
         /// @keyframes rules may have changed
         const FOR_CSS_RULE_CHANGES = 0x08,
     }
 }
 
 impl TraversalFlags {
     /// Returns true if the traversal is for animation-only restyles.
     pub fn for_animation_only(&self) -> bool {
-        self.contains(ANIMATION_ONLY)
+        self.intersects(ANIMATION_ONLY)
     }
 
     /// Returns true if the traversal is for unstyled children.
     pub fn for_unstyled_children_only(&self) -> bool {
         self.contains(UNSTYLED_CHILDREN_ONLY)
     }
 
     /// Returns true if the traversal is for a frame reconstruction.