Bug 594774. Detect DOM changes during painting, and abort painting ASAP when that happens. r=dbaron a=blocking

This commit is contained in:
Robert O'Callahan
2010-09-17 12:09:08 -07:00
parent 5d2254a0dc
commit 0c54073a33
6 changed files with 81 additions and 0 deletions

View File

@@ -8188,6 +8188,12 @@ nsCSSFrameConstructor::BeginUpdate() {
NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
"Someone forgot a script blocker");
nsRootPresContext* rootPresContext =
mPresShell->GetPresContext()->GetRootPresContext();
if (rootPresContext) {
rootPresContext->IncrementDOMGeneration();
}
++mUpdateCount;
}