зеркало из https://github.com/mozilla/pjs.git
Bug 16346: Implement overflow:hidden support from frames and iframes. Fix by peterlubczynski, r=pollmann, sr=buster
This commit is contained in:
Родитель
fd1ba75583
Коммит
fb83605600
|
@ -543,6 +543,13 @@ PRInt32 nsHTMLFrameInnerFrame::GetScrolling(nsIContent* aContent, PRBool aStanda
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check style for overflow
|
||||
const nsStyleDisplay* display;
|
||||
GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)display));
|
||||
if (display->mOverflow)
|
||||
returnValue = display->mOverflow;
|
||||
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
|
|
@ -543,6 +543,13 @@ PRInt32 nsHTMLFrameInnerFrame::GetScrolling(nsIContent* aContent, PRBool aStanda
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check style for overflow
|
||||
const nsStyleDisplay* display;
|
||||
GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)display));
|
||||
if (display->mOverflow)
|
||||
returnValue = display->mOverflow;
|
||||
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче