Bug 1384542: Fix MustReresolveStyle logic. r=me
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 31 Jul 2017 15:55:51 +0200
changeset 423110 a2717f579f07821503c56657fc676b4487baa629
parent 423109 5ffc57ebe8e97d09b8d2dc4390a629963805c233
child 423111 f015aed895e13887bcf8136f642023c77ba6db7b
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1384542
milestone56.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 1384542: Fix MustReresolveStyle logic. r=me MozReview-Commit-ID: 8GdZIyvaRLt
layout/style/nsComputedDOMStyle.cpp
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -564,17 +564,17 @@ MustReresolveStyle(const nsStyleContext*
     if (!aContext->GetPseudo() ||
         aContext->IsServo()) {
       // TODO(emilio): When ::first-line is supported in Servo, we may want to
       // fix this to avoid re-resolving pseudo-element styles.
       return true;
     }
 
     return aContext->AsGecko()->GetParent() &&
-           aContext->HasPseudoElementData();
+           aContext->AsGecko()->GetParent()->HasPseudoElementData();
   }
 
   return false;
 }
 
 already_AddRefed<nsStyleContext>
 nsComputedDOMStyle::DoGetStyleContextNoFlush(Element* aElement,
                                              nsIAtom* aPseudo,