mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1121198 part 3: Make nsFrameLoader::UpdateBaseWindowPositionAndSize infallible, since it only returns NS_OK. r=bz
This commit is contained in:
parent
b6ccf14be4
commit
b6dff99084
@ -1963,10 +1963,11 @@ nsFrameLoader::UpdatePositionAndSize(nsSubDocumentFrame *aIFrame)
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
return UpdateBaseWindowPositionAndSize(aIFrame);
|
||||
UpdateBaseWindowPositionAndSize(aIFrame);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
void
|
||||
nsFrameLoader::UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame)
|
||||
{
|
||||
nsCOMPtr<nsIDocShell> docShell;
|
||||
@ -1984,15 +1985,13 @@ nsFrameLoader::UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame)
|
||||
|
||||
if (!weakFrame.IsAlive()) {
|
||||
// GetPosition() killed us
|
||||
return NS_OK;
|
||||
return;
|
||||
}
|
||||
|
||||
nsIntSize size = aIFrame->GetSubdocumentSize();
|
||||
|
||||
baseWindow->SetPositionAndSize(x, y, size.width, size.height, false);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -287,7 +287,7 @@ private:
|
||||
|
||||
// Updates the subdocument position and size. This gets called only
|
||||
// when we have our own in-process DocShell.
|
||||
nsresult UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame);
|
||||
void UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame);
|
||||
nsresult CheckURILoad(nsIURI* aURI);
|
||||
void FireErrorEvent();
|
||||
nsresult ReallyStartLoadingInternal();
|
||||
|
Loading…
Reference in New Issue
Block a user