forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flash of white when exiting full screen HTML5 video
https://bugs.webkit.org/show_bug.cgi?id=85438 .: Reviewed by Sam Weinig. * ManualTests/fullscreen/full-screen-flash.html: Added. Source/WebKit2: Reviewed by Maciej Stachowiak. Force a repaint before displaying the newly exited WebView window. This gives the window a chance to seamlessly repaint before enabling screen updates. Also, send the WebProcess the didExitFullScreen and setAnimatingFullScreen(false) messages after swapping the WebView back into its original window. Doing otherwise seems to cause forceRepaint to paint a white frame. * UIProcess/mac/WKFullScreenWindowController.mm: (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): (-[WKFullScreenWindowController completeFinishExitFullScreenAnimationAfterRepaint]): (completeFinishExitFullScreenAnimationAfterRepaint): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
b7604d1
commit 72b0f5f
Showing
4 changed files
with
75 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2012-05-04 Jer Noble <[email protected]> | ||
|
||
Flash of white when exiting full screen HTML5 video | ||
https://bugs.webkit.org/show_bug.cgi?id=85438 | ||
|
||
Reviewed by Sam Weinig. | ||
|
||
* ManualTests/fullscreen/full-screen-flash.html: Added. | ||
|
||
2012-05-04 Jer Noble <[email protected]> | ||
|
||
Taking a visibility:hidden element full screen causes full screen window to disappear. | ||
|
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,28 @@ | ||
<style> | ||
body { background: green; color: white; } | ||
document:-webkit-full-screen-document > body { background: red; } | ||
span { text-decoration: underline; cursor: hand; } | ||
div { | ||
background: blue; | ||
width: 200px; | ||
height: 100px; | ||
} | ||
div:-webkit-full-screen { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
<script> | ||
function toggleFullScreen() { | ||
if (document.webkitIsFullScreen) | ||
document.webkitCancelFullScreen(); | ||
else | ||
document.getElementsByTagName('div')[0].webkitRequestFullscreen(); | ||
} | ||
</script> | ||
<body> | ||
This tests that the page does not have a visible "flash" when finishing the exit full screen animation. | ||
<span onclick="toggleFullScreen()">Click to toggle full screen.</span> | ||
<div> | ||
</div> | ||
</body> |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
2012-05-02 Jer Noble <[email protected]> | ||
|
||
Flash of white when exiting full screen HTML5 video | ||
https://bugs.webkit.org/show_bug.cgi?id=85438 | ||
|
||
Reviewed by Maciej Stachowiak. | ||
|
||
Force a repaint before displaying the newly exited WebView window. This gives the window | ||
a chance to seamlessly repaint before enabling screen updates. | ||
|
||
Also, send the WebProcess the didExitFullScreen and setAnimatingFullScreen(false) messages | ||
after swapping the WebView back into its original window. Doing otherwise seems to cause | ||
forceRepaint to paint a white frame. | ||
|
||
* UIProcess/mac/WKFullScreenWindowController.mm: | ||
(-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): | ||
(-[WKFullScreenWindowController completeFinishExitFullScreenAnimationAfterRepaint]): | ||
(completeFinishExitFullScreenAnimationAfterRepaint): | ||
|
||
2012-05-04 Anders Carlsson <[email protected]> | ||
|
||
Set the right device scale factor when creating the web page | ||
|
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