Bug 521525. Make sure to reflow kids with percentage heights if our computed height changes from specified to auto. r=dbaron

This commit is contained in:
Boris Zbarsky 2009-10-12 18:27:24 -04:00
parent 0ee1013cfa
commit ef9beab57c
8 changed files with 43 additions and 1 deletions

View File

@ -378,8 +378,9 @@ nsHTMLReflowState::InitResizeFlags(nsPresContext* aPresContext)
mCBReflowState) {
mFlags.mVResize = mCBReflowState->mFlags.mVResize;
} else {
mFlags.mVResize = mFlags.mHResize || NS_SUBTREE_DIRTY(frame);
mFlags.mVResize = mFlags.mHResize;
}
mFlags.mVResize = mFlags.mVResize || NS_SUBTREE_DIRTY(frame);
} else {
// not 'auto' height
mFlags.mVResize = frame->GetSize().height !=

View File

@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
<form><fieldset></fieldset></form>
</body>
</html>

View File

@ -0,0 +1,7 @@
<html>
<head>
</head>
<body onload="document.getElementById('f').style.removeProperty('height');">
<form><fieldset id="f" style="height: 200px;"></fieldset></form>
</body>
</html>

View File

@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
<div><div style="height: 100%; background: green"></div></div>
</body>
</html>

View File

@ -0,0 +1,7 @@
<html>
<head>
</head>
<body onload="document.getElementById('f').style.removeProperty('height');">
<div id="f" style="height: 200px;"><div style="height: 100%; background: green"></div></div>
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body>
<input type="file">
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body onload="document.getElementById('f').style.height = '';">
<input id="f" type="file" style="height: 0;">
</body>
</html>

View File

@ -1325,5 +1325,8 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 488692-1.html 488692-1-ref.html # needs
== 513318-1.xul 513318-1-ref.xul
!= 513318-2.xul 513318-2-ref.xul
!= 513318-3.xul 513318-3-ref.xul
== 521525-1.html 521525-1-ref.html
== 521525-2.html 521525-2-ref.html
== 521539-1.html 521539-1-ref.html
== 520421-1.html 520421-1-ref.html
== 521685-1.html 521685-1-ref.html