mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibWeb: Add the ability to retrieve a WebGL context from getContext
This commit is contained in:
parent
b0c2aee2e4
commit
58f882200c
Notes:
sideshowbarker
2024-07-17 10:16:11 +09:00
Author: https://github.com/Lubrsi
Commit: 58f882200c
Pull-request: https://github.com/SerenityOS/serenity/pull/14184
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sunverwerth
19 changed files with 903 additions and 21 deletions
|
@ -48,6 +48,10 @@ static bool is_wrappable_type(Type const& type)
|
|||
return true;
|
||||
if (type.name == "AbortSignal")
|
||||
return true;
|
||||
if (type.name == "CanvasRenderingContext2D")
|
||||
return true;
|
||||
if (type.name == "WebGLRenderingContext")
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue