mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1365873 - stylo: Fix toolkit/content/tests/chrome/test_bug437844.xul crash. r=emilio
MozReview-Commit-ID: GvKuA07PbUT --HG-- extra : rebase_source : 407831e1911eb461a4364dd131e4137f86b3a85a
This commit is contained in:
parent
1ec6c3d790
commit
adbbb144a4
@ -9648,12 +9648,8 @@ PresShell::Observe(nsISupports* aSubject,
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
++mChangeNestCount;
|
||||
RestyleManager* restyleManager = mPresContext->RestyleManager();
|
||||
if (restyleManager->IsServo()) {
|
||||
MOZ_CRASH("stylo: PresShell::Observe(\"chrome-flush-skin-caches\") "
|
||||
"not implemented for Servo-backed style system");
|
||||
}
|
||||
restyleManager->AsGecko()->ProcessRestyledFrames(changeList);
|
||||
restyleManager->AsGecko()->FlushOverflowChangedTracker();
|
||||
restyleManager->ProcessRestyledFrames(changeList);
|
||||
restyleManager->FlushOverflowChangedTracker();
|
||||
--mChangeNestCount;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user