-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Womo Adventure Map Full Screen View is not loading properly
https://bugs.webkit.org/show_bug.cgi?id=259570 <rdar://112733052> Reviewed by Simon Fraser. Let's just invalidate the floats as intended (and not floats _and_ out-of-flow positioned boxes). 1. out-of-flow box is incorrectly removed from the descendent map on the containing block (in clearDescendantFloats) 2. mutation on the out-of-flow box marks the containing block dirty with "simplified layout is needed" 3. simplified layout is triggered -> out-of-flow box is missing from the map (simplified layout is not supposed to re-populate this map). -> out-of-flow box stays dirty * LayoutTests/fast/dynamic/float-containing-block-becomes-out-of-flow-expected.html: Added. * LayoutTests/fast/dynamic/float-containing-block-becomes-out-of-flow.html: Added. * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::removeFloatingAndInvalidateForLayout): (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists): * Source/WebCore/rendering/RenderBox.h: * Source/WebCore/rendering/updating/RenderTreeBuilder.cpp: (WebCore::RenderTreeBuilder::normalizeTreeAfterStyleChange): Canonical link: https://commits.webkit.org/266366@main
- Loading branch information
1 parent
78b3283
commit 8350375
Showing
5 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
LayoutTests/fast/dynamic/float-containing-block-becomes-out-of-flow-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<style> | ||
.container { | ||
font-family: monospace; | ||
position: fixed; | ||
} | ||
.parent { | ||
background-color: green; | ||
position: absolute | ||
} | ||
</style> | ||
<div class=container><div class=parent>PASS if this text is visible</div></div> |
31 changes: 31 additions & 0 deletions
31
LayoutTests/fast/dynamic/float-containing-block-becomes-out-of-flow.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<style> | ||
#container { | ||
float: left; | ||
font-family: monospace; | ||
} | ||
.parent { | ||
position: relative; | ||
} | ||
#mutate_this { | ||
position: absolute; | ||
background-color: green; | ||
} | ||
#remove_this { | ||
display: inline-block; | ||
} | ||
</style> | ||
<div id=container> | ||
<div class=parent> | ||
<div id=mutate_this> | ||
<div id=remove_this></div> | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
document.body.offsetHeight; | ||
container.style.position = "fixed"; | ||
remove_this.remove(); | ||
|
||
document.body.offsetHeight; | ||
mutate_this.appendChild(document.createTextNode("PASS if this text is visible")); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters