Bug 1373672 - Part 2: nsDocShell::mChildOffset should be signed, r=smaug

All consumers of this value expect the passed-in value to be signed, and a
negative value is stored into this variable (-1) when the docshell was
dynamically added. It makes more sense for this to be signed.

MozReview-Commit-ID: 8iKDOAx7O2R
This commit is contained in:
Michael Layzell
2017-08-02 19:08:12 +02:00
parent 5c1a30b131
commit 6da3cba30e
3 changed files with 3 additions and 3 deletions

View File

@@ -4083,7 +4083,7 @@ nsDocShell::SetTreeOwner(nsIDocShellTreeOwner* aTreeOwner)
}
NS_IMETHODIMP
nsDocShell::SetChildOffset(uint32_t aChildOffset)
nsDocShell::SetChildOffset(int32_t aChildOffset)
{
mChildOffset = aChildOffset;
return NS_OK;