mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support WebDriver takeScreenshot command.
This adds support for compositing to a PNG without actually quiting the browser.
This commit is contained in:
parent
59cb1b0396
commit
5311d9ab59
13 changed files with 186 additions and 65 deletions
|
@ -413,6 +413,9 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
};
|
||||
sender.send(result).unwrap();
|
||||
}
|
||||
ConstellationMsg::CompositePng(reply) => {
|
||||
self.compositor_proxy.send(CompositorMsg::CreatePng(reply));
|
||||
}
|
||||
ConstellationMsg::WebDriverCommand(pipeline_id,
|
||||
command) => {
|
||||
debug!("constellation got webdriver command message");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue