diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp new file mode 100644 index 0000000000..b43439153c --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2021, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <LibWeb/HTML/Scripting/ClassicScript.h> + +namespace Web::HTML { + +NonnullRefPtr<ClassicScript> ClassicScript::create(URL base_url, RefPtr<JS::Script> script_record) +{ + return adopt_ref(*new ClassicScript(move(base_url), move(script_record))); +} + +ClassicScript::ClassicScript(URL base_url, RefPtr<JS::Script> script_record) + : Script(move(base_url)) + , m_script_record(move(script_record)) +{ +} + +ClassicScript::~ClassicScript() +{ +} + +} |