mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1164616 - "nsFrameLoader::DelayedStartLoadingRunnable is unused". r=josh
This commit is contained in:
parent
aa7d30677f
commit
d405ffeefb
@ -294,37 +294,6 @@ nsFrameLoader::ReallyStartLoading()
|
||||
return rv;
|
||||
}
|
||||
|
||||
class DelayedStartLoadingRunnable : public nsRunnable
|
||||
{
|
||||
public:
|
||||
explicit DelayedStartLoadingRunnable(nsFrameLoader* aFrameLoader)
|
||||
: mFrameLoader(aFrameLoader)
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMETHOD Run()
|
||||
{
|
||||
// Retry the request.
|
||||
mFrameLoader->ReallyStartLoading();
|
||||
|
||||
// We delayed nsFrameLoader::ReallyStartLoading() after the child process is
|
||||
// ready and might not be able to notify the remote browser in
|
||||
// UpdatePositionAndSize() when reflow finished. Retrigger reflow.
|
||||
nsIFrame* frame = mFrameLoader->GetPrimaryFrameOfOwningContent();
|
||||
if (!frame) {
|
||||
return NS_OK;
|
||||
}
|
||||
frame->InvalidateFrame();
|
||||
frame->PresContext()->PresShell()->
|
||||
FrameNeedsReflow(frame, nsIPresShell::eResize, NS_FRAME_IS_DIRTY);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
nsRefPtr<nsFrameLoader> mFrameLoader;
|
||||
};
|
||||
|
||||
nsresult
|
||||
nsFrameLoader::ReallyStartLoadingInternal()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user