mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Ignore attempts to reframe things before we've done initial reflow. Bug379975, r+sr=roc
This commit is contained in:
parent
ab6e18ee19
commit
2464dea33d
@ -3305,6 +3305,11 @@ NS_IMETHODIMP
|
||||
PresShell::RecreateFramesFor(nsIContent* aContent)
|
||||
{
|
||||
NS_ENSURE_TRUE(mPresContext, NS_ERROR_FAILURE);
|
||||
if (!mDidInitialReflow) {
|
||||
// Nothing to do here. In fact, if we proceed and aContent is the
|
||||
// root we will crash.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Don't call RecreateFramesForContent since that is not exported and we want
|
||||
// to keep the number of entrypoints down.
|
||||
|
Loading…
Reference in New Issue
Block a user