table frames that dont wrap their content with scrollframes hide the overflow if NS_STYLE_OVERFLOW_SCROLLBARS_NONE is specified bug 233438 r/sr=dbaron

This commit is contained in:
bmlk%gmx.de 2004-04-14 06:28:25 +00:00
parent 5171d71d60
commit a3082a360e
2 changed files with 10 additions and 2 deletions

View File

@ -4278,7 +4278,11 @@ nsFrame::ConsiderChildOverflow(nsIPresContext* aPresContext,
nsRect& aOverflowArea,
nsIFrame* aChildFrame)
{
if (GetStyleDisplay()->mOverflow != NS_STYLE_OVERFLOW_HIDDEN) {
const nsStyleDisplay* disp = GetStyleDisplay();
// check here also for scrollbar none as table frames (table, tr and td) currently
// don't wrap their content into a scrollable frame if overflow is specified
if (NS_STYLE_OVERFLOW_HIDDEN != disp->mOverflow &&
NS_STYLE_OVERFLOW_SCROLLBARS_NONE != disp->mOverflow) {
nsRect* overflowArea = aChildFrame->GetOverflowAreaProperty(aPresContext);
if (overflowArea) {
nsRect childOverflow(*overflowArea);

View File

@ -4278,7 +4278,11 @@ nsFrame::ConsiderChildOverflow(nsIPresContext* aPresContext,
nsRect& aOverflowArea,
nsIFrame* aChildFrame)
{
if (GetStyleDisplay()->mOverflow != NS_STYLE_OVERFLOW_HIDDEN) {
const nsStyleDisplay* disp = GetStyleDisplay();
// check here also for scrollbar none as table frames (table, tr and td) currently
// don't wrap their content into a scrollable frame if overflow is specified
if (NS_STYLE_OVERFLOW_HIDDEN != disp->mOverflow &&
NS_STYLE_OVERFLOW_SCROLLBARS_NONE != disp->mOverflow) {
nsRect* overflowArea = aChildFrame->GetOverflowAreaProperty(aPresContext);
if (overflowArea) {
nsRect childOverflow(*overflowArea);