Backed out changeset 9a7b90cf8a63 (bug 1361618) for frequently failing accessible/tests/browser/states/browser_test_link.js (bug 1385498). r=backout a=backout

MozReview-Commit-ID: DK2CuaYBPbj
This commit is contained in:
Sebastian Hengst 2017-07-29 11:42:39 +02:00
parent 40c3480d89
commit 22f1bfd79d
2 changed files with 2 additions and 0 deletions

View File

@ -1823,6 +1823,7 @@ ElementRestyler::Restyle(nsRestyleHint aRestyleHint)
// descendants have been resolved), we don't want to consume it
// for the inner frame.
mContent->GetPrimaryFrame() == mFrame) {
mContent->OwnerDoc()->FlushPendingLinkUpdates();
nsAutoPtr<RestyleTracker::RestyleData> restyleData;
if (mRestyleTracker.GetRestyleData(mContent->AsElement(), restyleData)) {
nsChangeHint changeToAppend =

View File

@ -5156,6 +5156,7 @@ nsCSSFrameConstructor::ResolveStyleContext(nsStyleContext* aParentStyleContext,
Element* aOriginatingElementOrNull)
{
StyleSetHandle styleSet = mPresShell->StyleSet();
aContent->OwnerDoc()->FlushPendingLinkUpdates();
RefPtr<nsStyleContext> result;
if (aContent->IsElement()) {