Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto merge of #5064 : glennw/servo/hide-after-layout, r=pcwalton
Prior to incremental layout, the code would remove the existing construction result. However, with incremental layout the construction result is cloned rather than removed. This change ensures that the previous construction result is cleared when an element's display type changes to none.
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<style type="text/css"> | ||
.hidden { | ||
display: none; | ||
} | ||
body { | ||
background-color: green; | ||
} | ||
iframe { | ||
background-color: red; | ||
border: 0; | ||
} | ||
</style> | ||
<body> | ||
<iframe id="iframe" src="about:blank"></iframe> | ||
</body> | ||
<script type="text/javascript"> | ||
window.onload = function() { | ||
document.getElementById("iframe").classList.add("hidden"); | ||
document.documentElement.classList.remove("reftest-wait"); | ||
} | ||
</script> | ||
</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,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<style type="text/css"> | ||
body { | ||
background-color: green; | ||
} | ||
</style> | ||
<body> | ||
</body> | ||
</html> |