bug 6161 - don't reinitialize mMarginWidth, mMarginHeight on doc load.
This commit is contained in:
Родитель
d85c96e3c9
Коммит
1fc631c4b5
|
@ -576,11 +576,11 @@ nsWebShell::~nsWebShell()
|
||||||
|
|
||||||
void nsWebShell::InitFrameData(PRBool aCompleteInitScrolling)
|
void nsWebShell::InitFrameData(PRBool aCompleteInitScrolling)
|
||||||
{
|
{
|
||||||
mMarginWidth = -1;
|
|
||||||
mMarginHeight = -1;
|
|
||||||
if (aCompleteInitScrolling) {
|
if (aCompleteInitScrolling) {
|
||||||
mScrolling[0] = -1;
|
mScrolling[0] = -1;
|
||||||
mScrolling[1] = -1;
|
mScrolling[1] = -1;
|
||||||
|
mMarginWidth = -1;
|
||||||
|
mMarginHeight = -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mScrolling[1] = mScrolling[0];
|
mScrolling[1] = mScrolling[0];
|
||||||
|
|
|
@ -576,11 +576,11 @@ nsWebShell::~nsWebShell()
|
||||||
|
|
||||||
void nsWebShell::InitFrameData(PRBool aCompleteInitScrolling)
|
void nsWebShell::InitFrameData(PRBool aCompleteInitScrolling)
|
||||||
{
|
{
|
||||||
mMarginWidth = -1;
|
|
||||||
mMarginHeight = -1;
|
|
||||||
if (aCompleteInitScrolling) {
|
if (aCompleteInitScrolling) {
|
||||||
mScrolling[0] = -1;
|
mScrolling[0] = -1;
|
||||||
mScrolling[1] = -1;
|
mScrolling[1] = -1;
|
||||||
|
mMarginWidth = -1;
|
||||||
|
mMarginHeight = -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mScrolling[1] = mScrolling[0];
|
mScrolling[1] = mScrolling[0];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче