mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
5171d71d60
commit
a3082a360e
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user