Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ensures that the viewport anchor layer will be updated when upda…
…ting compositing layers upon style change https://bugs.webkit.org/show_bug.cgi?id=246890 rdar://99568474 Reviewed by Simon Fraser. * LayoutTests/compositing/scrolling/fixed-style-with-rotation.html: Added. * LayoutTests/compositing/scrolling/sticky-style-with-rotation.html: Added. * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::layerStyleChanged): Canonical link: https://commits.webkit.org/256025@main
- Loading branch information
1 parent
c4f1f9c
commit 67c0ccb
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/compositing/scrolling/fixed-style-with-rotation-expected.txt
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 @@ | ||
The HTML page loads as expected |
20 changes: 20 additions & 0 deletions
20
LayoutTests/compositing/scrolling/fixed-style-with-rotation.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,20 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
rotate: y 1turn; | ||
} | ||
</style> | ||
<body> | ||
<p>The HTML page loads as expected</p> | ||
</body> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
onload = () => { | ||
document.body.offsetTop; | ||
document.body.style.position = 'fixed'; | ||
scrollBy(0, 0); | ||
}; | ||
</script> | ||
|
1 change: 1 addition & 0 deletions
1
LayoutTests/compositing/scrolling/sticky-style-with-rotation-expected.txt
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 @@ | ||
The HTML page loads as expected |
20 changes: 20 additions & 0 deletions
20
LayoutTests/compositing/scrolling/sticky-style-with-rotation.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,20 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
rotate: y 1turn; | ||
} | ||
</style> | ||
<body> | ||
<p>The HTML page loads as expected</p> | ||
</body> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
onload = () => { | ||
document.body.offsetTop; | ||
document.body.style.position = 'sticky'; | ||
scrollBy(0, 0); | ||
}; | ||
</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