Bug 1365873 - stylo: Fix toolkit/content/tests/chrome/test_bug437844.xul crash. r=emilio
MozReview-Commit-ID: GvKuA07PbUT
This commit is contained in:
@@ -9648,12 +9648,8 @@ PresShell::Observe(nsISupports* aSubject,
|
|||||||
nsAutoScriptBlocker scriptBlocker;
|
nsAutoScriptBlocker scriptBlocker;
|
||||||
++mChangeNestCount;
|
++mChangeNestCount;
|
||||||
RestyleManager* restyleManager = mPresContext->RestyleManager();
|
RestyleManager* restyleManager = mPresContext->RestyleManager();
|
||||||
if (restyleManager->IsServo()) {
|
restyleManager->ProcessRestyledFrames(changeList);
|
||||||
MOZ_CRASH("stylo: PresShell::Observe(\"chrome-flush-skin-caches\") "
|
restyleManager->FlushOverflowChangedTracker();
|
||||||
"not implemented for Servo-backed style system");
|
|
||||||
}
|
|
||||||
restyleManager->AsGecko()->ProcessRestyledFrames(changeList);
|
|
||||||
restyleManager->AsGecko()->FlushOverflowChangedTracker();
|
|
||||||
--mChangeNestCount;
|
--mChangeNestCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user