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:
parent
cfc4fe3377
commit
41dba10844
@ -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;
|
||||
}
|
||||
|
||||
18
mozilla/layout/reftests/bugs/402567-1-ref.html
Normal file
18
mozilla/layout/reftests/bugs/402567-1-ref.html
Normal 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>
|
||||
18
mozilla/layout/reftests/bugs/402567-1.html
Normal file
18
mozilla/layout/reftests/bugs/402567-1.html
Normal 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>
|
||||
20
mozilla/layout/reftests/bugs/402567-2-ref.html
Normal file
20
mozilla/layout/reftests/bugs/402567-2-ref.html
Normal 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>
|
||||
16
mozilla/layout/reftests/bugs/402567-2.html
Normal file
16
mozilla/layout/reftests/bugs/402567-2.html
Normal 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>
|
||||
25
mozilla/layout/reftests/bugs/402567-3-ref.html
Normal file
25
mozilla/layout/reftests/bugs/402567-3-ref.html
Normal 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>
|
||||
19
mozilla/layout/reftests/bugs/402567-3.html
Normal file
19
mozilla/layout/reftests/bugs/402567-3.html
Normal 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>
|
||||
26
mozilla/layout/reftests/bugs/402567-4-ref.html
Normal file
26
mozilla/layout/reftests/bugs/402567-4-ref.html
Normal 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>
|
||||
20
mozilla/layout/reftests/bugs/402567-4.html
Normal file
20
mozilla/layout/reftests/bugs/402567-4.html
Normal 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>
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user