Bug 1402285 - Don't try to cache pseudo styles with an unstyled originating element. r=emilio

MozReview-Commit-ID: C4JNZFtYHBH
This commit is contained in:
Bobby Holley 2017-09-22 16:09:18 -07:00
parent 01fb3786f9
commit cb69588ef2

View File

@ -555,6 +555,7 @@ LazyPseudoIsCacheable(CSSPseudoElementType aType,
{
return aParentContext &&
!nsCSSPseudoElements::IsEagerlyCascadedInServo(aType) &&
aOriginatingElement->HasServoData() &&
!Servo_Element_IsPrimaryStyleReusedViaRuleNode(aOriginatingElement);
}