-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compositing: Send entire scene's scroll offsets when sending WebRende…
…r display lists WebRender does not preserve spatial tree offsets when updating the spatial tree. Updating the spatial tree of a pipeline can also update the spatial tree of child pipelines. This change ensures that WebRender always gets the scroll offsets of the entire scene when modifying display lists in a way that may rebuild the spatial tree. Fixes #31807.
- Loading branch information
Showing
5 changed files
with
130 additions
and
13 deletions.
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
21 changes: 21 additions & 0 deletions
21
tests/wpt/tests/css/css-transforms/support/transform-iframe-scroll-position-contents.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,21 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>CSS Test (Transforms): iframe scroll position</title> | ||
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> | ||
<style> | ||
html { background: red; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<!-- Make a large red page with a small green and blue square that is scrolled to immediately. --> | ||
<div style="position: absolute; width: 50px; height: 25px; top: 3000px; left: 3000px; background: green;"></div> | ||
<div style="position: absolute; width: 50px; height: 25px; top: 3025px; left: 3000px; background: blue;"></div> | ||
<div style="width: 10000px; height: 10000px;"></div> | ||
<script> | ||
window.scrollTo(3000, 3000); | ||
</script> | ||
</body> | ||
</html> |
30 changes: 30 additions & 0 deletions
30
tests/wpt/tests/css/css-transforms/transform-iframe-scroll-position-ref.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,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test (Transforms): iframe scroll position</title> | ||
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> | ||
<style> | ||
#iframe { | ||
border: 0; | ||
width: 50px; | ||
height: 50px; | ||
border: solid; | ||
} | ||
|
||
#iframe div { | ||
width: 25px; | ||
height: 50px; | ||
float: left; | ||
} | ||
|
||
.rotate { | ||
transform: rotate(90deg); | ||
} | ||
</style> | ||
<body onload="onLoad();"> | ||
<div id="iframe"> | ||
<div style="background: blue;"></div> | ||
<div style="background: green;"></div> | ||
</div> | ||
</body> | ||
</html> |
29 changes: 29 additions & 0 deletions
29
tests/wpt/tests/css/css-transforms/transform-iframe-scroll-position.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,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test (Transforms): iframe scroll position</title> | ||
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> | ||
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> | ||
<meta name="assert" content="This test ensures that when an iframe element is transformed, the scroll position of the iframe content is preserved."> | ||
<link rel="match" href="transform-iframe-scroll-position-ref.html"> | ||
<style> | ||
iframe { | ||
border: 0; | ||
width: 50px; | ||
height: 50px; | ||
border: solid; | ||
} | ||
|
||
.rotate { | ||
transform: rotate(90deg); | ||
} | ||
</style> | ||
<body onload="onLoad();"> | ||
<iframe id="iframe" src="support/transform-iframe-scroll-position-contents.html"></iframe> | ||
<script> | ||
function onLoad() { | ||
iframe.classList.toggle("rotate"); | ||
} | ||
</script> | ||
</body> | ||
</html> |