mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
compositing: In borderless mode, don't show the window until the page
has loaded. This avoids a flash of unstyled content, which looks especially bad in browser.html since unstyled content is white and browser.html has a transparent background. Closes #9996.
This commit is contained in:
parent
1a60e07ee8
commit
c2581d5cef
7 changed files with 23 additions and 13 deletions
|
@ -592,7 +592,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
self.window.load_start(back, forward);
|
||||
}
|
||||
|
||||
(Msg::LoadComplete(back, forward), ShutdownState::NotShuttingDown) => {
|
||||
(Msg::LoadComplete(back, forward, root), ShutdownState::NotShuttingDown) => {
|
||||
self.got_load_complete_message = true;
|
||||
|
||||
// If we're painting in headless mode, schedule a recomposite.
|
||||
|
@ -603,7 +603,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
// Inform the embedder that the load has finished.
|
||||
//
|
||||
// TODO(pcwalton): Specify which frame's load completed.
|
||||
self.window.load_end(back, forward);
|
||||
self.window.load_end(back, forward, root);
|
||||
}
|
||||
|
||||
(Msg::DelayedCompositionTimeout(timestamp), ShutdownState::NotShuttingDown) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue