Bug 1430450 - Remove Logically dead code. r=emilio
authorAshish <supersonic12910@gmail.com>
Mon, 29 Jan 2018 23:24:49 +0530
changeset 401358 397ad5120bb004306423207c79c09eaadfe5d5dd
parent 401357 5c5431fce5ba9ba82952557e61fbd4420644fcb1
child 401359 8290a5ff735438dd11b03fb0ca442e3bf8752ae3
push id99360
push userecoal95@gmail.com
push dateTue, 30 Jan 2018 09:38:14 +0000
treeherdermozilla-inbound@397ad5120bb0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1430450
milestone60.0a1
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
Bug 1430450 - Remove Logically dead code. r=emilio MozReview-Commit-ID: Jk2CfMZOQPG
dom/base/Element.cpp
--- a/dom/base/Element.cpp
+++ b/dom/base/Element.cpp
@@ -4662,17 +4662,17 @@ NoteDirtyElement(Element* aElement, uint
   }
 
   // There is an existing restyle root - walk up the tree from our element,
   // propagating bits as we go.
   const bool reachedDocRoot =
     !parent->IsElement() ||
     !PropagateBits(parent->AsElement(), aBits, existingRoot);
 
-  uint32_t existingBits = existingRoot ? doc->GetServoRestyleRootDirtyBits() : 0;
+  uint32_t existingBits = doc->GetServoRestyleRootDirtyBits();
   if (!reachedDocRoot || existingRoot == doc) {
       // We're a descendant of the existing root. All that's left to do is to
       // make sure the bit we propagated is also registered on the root.
       doc->SetServoRestyleRoot(existingRoot, existingBits | aBits);
   } else {
     // We reached the root without crossing the pre-existing restyle root. We
     // now need to find the nearest common ancestor, so climb up from the
     // existing root, extending bits along the way.