Bug 402567: make scrollframe GetMinWidth return the scrolled frame's min-width.

r+sr=dbaron a=blocking1.9


git-svn-id: svn://10.0.0.236/trunk@240446 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dholbert%cs.stanford.edu 2007-12-04 22:03:17 +00:00
parent cfc4fe3377
commit 41dba10844
10 changed files with 167 additions and 1 deletions

View File

@ -656,7 +656,7 @@ nsHTMLScrollFrame::PlaceScrollArea(const ScrollReflowState& aState)
/* virtual */ nscoord
nsHTMLScrollFrame::GetMinWidth(nsIRenderingContext *aRenderingContext)
{
nscoord result = 0;
nscoord result = mInner.mScrolledFrame->GetMinWidth(aRenderingContext);
DISPLAY_MIN_WIDTH(this, result);
return result;
}

View File

@ -0,0 +1,18 @@
<html>
<head><style>
table { width: 10px; }
div { background: lightgreen; }
</style></head>
<body>
<table><tr><td>
<div>
a bb ccc dddd
</div>
</td></tr></table>
<table><tr><td>
<div>
a bb ccc dddd
</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,18 @@
<html>
<head><style>
table { width: 10px; }
div { background: lightgreen; }
</style></head>
<body>
<table><tr><td>
<div style="overflow: hidden;">
a bb ccc dddd
</div>
</td></tr></table>
<table><tr><td>
<div style="overflow: auto;">
a bb ccc dddd
</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head><style>
table {
width: 10px;
}
div.scroll {
overflow: scroll;
background: lightgreen;
}
div.invis {
color: white;
}
</style></head>
<body>
<table><tr><td>
<div class="scroll">xxx</div>
<div class="invis">xxx</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,16 @@
<html>
<head><style>
table {
width: 10px;
}
div.scroll {
overflow: scroll;
background: lightgreen;
}
</style></head>
<body>
<table><tr><td>
<div class="scroll">xxx</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,25 @@
<html>
<head><style>
table {
width: 10px;
}
div.scroll {
overflow: scroll;
background: lightgreen;
}
div.invis {
color: white;
}
</style></head>
<body>
<table><tr><td>
<div class="scroll">
x xx x xx x xx x xx x xx x xx x xx x
xxxxxx
</div>
<div class="invis">
xxxxxx
</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,19 @@
<html>
<head><style>
table {
width: 10px;
}
div.scroll {
overflow: scroll;
background: lightgreen;
}
</style></head>
<body>
<table><tr><td>
<div class="scroll">
x xx x xx x xx x xx x xx x xx x xx x
xxxxxx
</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,26 @@
<html>
<head><style>
table {
width: 10px;
}
div.auto {
overflow: auto;
height: 50px;
background: lightgreen;
}
div.invis {
color: white;
}
</style></head>
<body>
<table><tr><td>
<div class="auto">
x xx x xx x xx x xx x xx x xx x xx x
xxxxxx
</div>
<div class="invis">
xxxxxx
</div>
</td></tr></table>
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head><style>
table {
width: 10px;
}
div.auto {
overflow: auto;
height: 50px;
background: lightgreen;
}
</style></head>
<body>
<table><tr><td>
<div class="auto">
x xx x xx x xx x xx x xx x xx x xx x
xxxxxx
</div>
</td></tr></table>
</body>
</html>

View File

@ -469,6 +469,10 @@ fails == 386310-1d.html 386310-1-ref.html
== 400826-1.html 400826-1-ref.html
== 401946-1.xul about:blank
== 402338-1.html 402338-1-ref.html
== 402567-1.html 402567-1-ref.html
== 402567-2.html 402567-2-ref.html
== 402567-3.html 402567-3-ref.html
== 402567-4.html 402567-4-ref.html
== 402950-1.html 402950-1-ref.html
== 403129-1.html 403129-1-ref.html
== 403129-2.html 403129-2-ref.html