mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb: Create canvas bitmap when not existing in toDataURL and toBlob
This commit is contained in:
parent
d24e07579f
commit
5e7a82a853
5 changed files with 34 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
|||
namespace Web::WebDriver {
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-encoding-a-canvas-as-base64
|
||||
static Response encode_canvas_element(HTML::HTMLCanvasElement const& canvas)
|
||||
static Response encode_canvas_element(HTML::HTMLCanvasElement& canvas)
|
||||
{
|
||||
// FIXME: 1. If the canvas element’s bitmap’s origin-clean flag is set to false, return error with error code unable to capture screen.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue