Bug 709256 part 3. Skip calling PresShell::FlushPendingNotifications altogether if there might not be anything to flush. r=roc
This commit is contained in:
@@ -11703,6 +11703,11 @@ nsCSSFrameConstructor::PostRestyleEventInternal(bool aForLazyConstruction)
|
||||
mObservingRefreshDriver = mPresShell->GetPresContext()->RefreshDriver()->
|
||||
AddStyleFlushObserver(mPresShell);
|
||||
}
|
||||
|
||||
// Unconditionally flag our document as needing a flush. The other
|
||||
// option here would be a dedicated boolean to track whether we need
|
||||
// to do so (set here and unset in ProcessPendingRestyles).
|
||||
mPresShell->GetDocument()->SetNeedStyleFlush();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user