зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121198 part 1: Make nsDocShell GetPosition/GetSize pass null outparams for unwanted info. r=bz
This commit is contained in:
Родитель
e6b8f3a849
Коммит
ca325b5340
|
@ -5804,8 +5804,7 @@ nsDocShell::SetPosition(int32_t x, int32_t y)
|
|||
NS_IMETHODIMP
|
||||
nsDocShell::GetPosition(int32_t * aX, int32_t * aY)
|
||||
{
|
||||
int32_t dummyHolder;
|
||||
return GetPositionAndSize(aX, aY, &dummyHolder, &dummyHolder);
|
||||
return GetPositionAndSize(aX, aY, nullptr, nullptr);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -5819,8 +5818,7 @@ nsDocShell::SetSize(int32_t aCX, int32_t aCY, bool aRepaint)
|
|||
NS_IMETHODIMP
|
||||
nsDocShell::GetSize(int32_t * aCX, int32_t * aCY)
|
||||
{
|
||||
int32_t dummyHolder;
|
||||
return GetPositionAndSize(&dummyHolder, &dummyHolder, aCX, aCY);
|
||||
return GetPositionAndSize(nullptr, nullptr, aCX, aCY);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче