a=donm, r=vidur.
- Added support for two prefs: a) a boolean pref "layout.reflow.async" that turns asynchronous reflow on/off. The default is off. b) an integer pref "layout.reflow.timeslice" that specifies a reflow timeslice, in microseconds. When asynchronous reflow is on, the reflow command processing loop in ProcessReflowCommands() tries to return to the event loop if the time spent processing reflow commands exceeds this timeslice. The default value is 1 second. git-svn-id: svn://10.0.0.236/trunk@56473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -754,9 +754,10 @@ FrameManager::HandlePLEvent(CantRenderReplacedElementEvent* aEvent)
|
||||
// Notify the style system and then process any reflow commands that
|
||||
// are generated
|
||||
nsCOMPtr<nsIPresContext> presContext;
|
||||
frameManager->mPresShell->EnterReflowLock();
|
||||
frameManager->mPresShell->GetPresContext(getter_AddRefs(presContext));
|
||||
frameManager->mStyleSet->CantRenderReplacedElement(presContext, aEvent->mFrame);
|
||||
frameManager->mPresShell->ProcessReflowCommands();
|
||||
frameManager->mStyleSet->CantRenderReplacedElement(presContext, aEvent->mFrame);
|
||||
frameManager->mPresShell->ExitReflowLock(PR_TRUE, PR_TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user