Backed out changeset 186921ff2a55 (bug 1351535)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Sat, 08 Apr 2017 16:53:00 +0200
changeset 351955 be5401732b782bfa628fea9227b12afe2243e15f
parent 351954 421b19e1a8624946d148af1256939cb7c07eda29
child 351956 594c924d62bb220ab7dad31da80a8a207b5064be
push id31623
push userarchaeopteryx@coole-files.de
push dateSat, 08 Apr 2017 20:46:02 +0000
treeherdermozilla-central@21c4aca1ae60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1351535
milestone55.0a1
backs out186921ff2a55cd3e51e835b83b1597b7d66ea74e
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 186921ff2a55 (bug 1351535)
servo/components/style/traversal.rs
--- a/servo/components/style/traversal.rs
+++ b/servo/components/style/traversal.rs
@@ -144,22 +144,16 @@ pub trait DomTraversal<E: TElement> : Sy
     /// If traversal_flag::UNSTYLED_CHILDREN_ONLY is specified, style newly-
     /// appended children without restyling the parent.
     /// If traversal_flag::ANIMATION_ONLY is specified, style only elements for
     /// animations.
     fn pre_traverse(root: E, stylist: &Stylist, traversal_flags: TraversalFlags)
                     -> PreTraverseToken
     {
         if traversal_flags.for_unstyled_children_only() {
-            if root.borrow_data().map_or(true, |d| d.has_styles() && d.styles().is_display_none()) {
-                return PreTraverseToken {
-                    traverse: false,
-                    unstyled_children_only: false,
-                };
-            }
             return PreTraverseToken {
                 traverse: true,
                 unstyled_children_only: true,
             };
         }
 
         // Expand the snapshot, if any. This is normally handled by the parent, so
         // we need a special case for the root.