Bug 1365873 - stylo: Fix toolkit/content/tests/chrome/test_bug437844.xul crash. r?emilio
MozReview-Commit-ID: GvKuA07PbUT
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -9643,22 +9643,18 @@ PresShell::Observe(nsISupports* aSubject
WalkFramesThroughPlaceholders(mPresContext, rootFrame,
ReframeImageBoxes, &changeList);
// Mark ourselves as not safe to flush while we're doing frame
// construction.
{
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;
}
}
}
return NS_OK;
}
#endif