add window method for notifying when the <head> tag has been parsed

This commit is contained in:
Mike Blumenkrantz 2015-05-29 18:27:00 -04:00
parent 612cefa02d
commit ffa2093012
10 changed files with 32 additions and 0 deletions

View file

@ -458,6 +458,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
self.window.set_favicon(url);
}
(Msg::HeadParsed, ShutdownState::NotShuttingDown) => {
self.window.head_parsed();
}
// When we are shutting_down, we need to avoid performing operations
// such as Paint that may crash because we have begun tearing down
// the rest of our resources.