mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Make DOMException GC-allocated
This commit is contained in:
parent
0e47754ac8
commit
497ead37bc
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/awesomekling
Commit: 497ead37bc
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
58 changed files with 307 additions and 278 deletions
|
@ -17,6 +17,7 @@ JS::NonnullGCPtr<Path2D> Path2D::create_with_global_object(HTML::Window& window,
|
|||
// https://html.spec.whatwg.org/multipage/canvas.html#dom-path2d
|
||||
Path2D::Path2D(HTML::Window& window, Optional<Variant<JS::Handle<Path2D>, String>> const& path)
|
||||
: PlatformObject(window.realm())
|
||||
, CanvasPath(static_cast<Bindings::PlatformObject&>(*this))
|
||||
{
|
||||
set_prototype(&window.cached_web_prototype("Path2D"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue