fix embedding rendering when using a child window

compositing must be initialized automatically in this case
This commit is contained in:
Mike Blumenkrantz 2015-05-08 21:53:26 -04:00
parent f4381a6f1e
commit 17390e75ec

View file

@ -137,6 +137,9 @@ impl ServoCefBrowserExtensions for CefBrowser {
self.downcast().host.set_browser((*self).clone());
self.downcast().frame.set_browser((*self).clone());
if window_info.parent_window != 0 {
self.downcast().host.initialize_compositing();
}
}
fn send_window_event(&self, event: WindowEvent) {