Bug 1322570 Part 6 - Use GetParentAllowServo() in RestyleManager.
Fixed tests like layout/reftests/bidi/670226-1.html.
MozReview-Commit-ID: DuEXNZhFC7M
--- a/layout/base/RestyleManager.cpp
+++ b/layout/base/RestyleManager.cpp
@@ -1335,17 +1335,18 @@ RestyleManager::GetNextContinuationWithS
}
NS_ASSERTION(nextContinuation->GetContent() == aFrame->GetContent(),
"unexpected content mismatch");
nsStyleContext* nextStyle = nextContinuation->StyleContext();
if (nextStyle != aOldStyleContext) {
NS_ASSERTION(aOldStyleContext->GetPseudo() != nextStyle->GetPseudo() ||
- aOldStyleContext->GetParent() != nextStyle->GetParent(),
+ aOldStyleContext->GetParentAllowServo() !=
+ nextStyle->GetParentAllowServo(),
"continuations should have the same style context");
nextContinuation = nullptr;
if (aHaveMoreContinuations) {
*aHaveMoreContinuations = true;
}
}
return nextContinuation;
}