зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
bf0fb4c2e8
Коммит
18cceefcaa
|
@ -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 !=
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<form><fieldset></fieldset></form>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div><div style="height: 100%; background: green"></div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body>
|
||||
<input type="file">
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body onload="document.getElementById('f').style.height = '';">
|
||||
<input id="f" type="file" style="height: 0;">
|
||||
</body>
|
||||
</html>
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче