mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 373433: views inside absolutely positioned blocks sometimes mispositioned. r+sr=roc.
This commit is contained in:
parent
a6bf7e6912
commit
1cf7602a3e
@ -436,6 +436,7 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
||||
aKidFrame->GetParent()->Invalidate(oldOverflowRect);
|
||||
aKidFrame->GetParent()->Invalidate(kidDesiredSize.mOverflowArea +
|
||||
rect.TopLeft());
|
||||
nsContainerFrame::PositionChildViews(aKidFrame);
|
||||
} else if (oldRect.Size() != rect.Size()) {
|
||||
// Invalidate the area where the frame changed size.
|
||||
nscoord innerWidth = PR_MIN(oldRect.width, rect.width);
|
||||
|
5
layout/reftests/bugs/373433-1-ref.html
Normal file
5
layout/reftests/bugs/373433-1-ref.html
Normal file
@ -0,0 +1,5 @@
|
||||
<div style="position:relative; width:300px; height: 300px;">test
|
||||
<script>
|
||||
</script>
|
||||
<div style="position:absolute; right:0;">
|
||||
<input style="width: 200px" value="testtesttesttesttesttesttesttest">
|
6
layout/reftests/bugs/373433-1.html
Normal file
6
layout/reftests/bugs/373433-1.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div style="position:relative; width:300px; height: 300px;">test
|
||||
<script>
|
||||
document.body.offsetHeight;
|
||||
</script>
|
||||
<div style="position:absolute; right:0;">
|
||||
<input style="width: 200px" value="testtesttesttesttesttesttesttest">
|
@ -202,3 +202,4 @@ fails == 368504-1.html 368504-1-ref.html # bug 368504
|
||||
== 373381-1.html 373381-1-ref.html
|
||||
== 372037-1.html 372037-1-ref.html
|
||||
== 375508-1.html 375508-1-ref.html
|
||||
== 373433-1.html 373433-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user