Bug 594774. Detect DOM changes during painting, and abort painting ASAP when that happens. r=dbaron a=blocking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user