mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
0ee1013cfa
commit
ef9beab57c
@ -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 !=
|
||||
|
7
layout/reftests/bugs/521525-1-ref.html
Normal file
7
layout/reftests/bugs/521525-1-ref.html
Normal file
@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<form><fieldset></fieldset></form>
|
||||
</body>
|
||||
</html>
|
7
layout/reftests/bugs/521525-1.html
Normal file
7
layout/reftests/bugs/521525-1.html
Normal 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>
|
7
layout/reftests/bugs/521525-2-ref.html
Normal file
7
layout/reftests/bugs/521525-2-ref.html
Normal file
@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div><div style="height: 100%; background: green"></div></div>
|
||||
</body>
|
||||
</html>
|
7
layout/reftests/bugs/521525-2.html
Normal file
7
layout/reftests/bugs/521525-2.html
Normal 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>
|
5
layout/reftests/bugs/521539-1-ref.html
Normal file
5
layout/reftests/bugs/521539-1-ref.html
Normal file
@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<input type="file">
|
||||
</body>
|
||||
</html>
|
5
layout/reftests/bugs/521539-1.html
Normal file
5
layout/reftests/bugs/521539-1.html
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user