mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Implement CanvasRenderingContext2D.isContextLost()
Note that we don't implement the "context lost steps" yet, so this will always return the initial value (false).
This commit is contained in:
parent
2576af5db1
commit
1298c27ca9
3 changed files with 12 additions and 0 deletions
|
@ -336,6 +336,13 @@ void CanvasRenderingContext2D::reset()
|
|||
reset_to_default_state();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-iscontextlost
|
||||
bool CanvasRenderingContext2D::is_context_lost()
|
||||
{
|
||||
// The isContextLost() method steps are to return this's context lost.
|
||||
return m_context_lost;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#reset-the-rendering-context-to-its-default-state
|
||||
void CanvasRenderingContext2D::reset_to_default_state()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue