mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibWeb: Remove some unused includes and a member in HTMLScriptElement
This commit is contained in:
parent
e7af6af626
commit
b1529e3202
2 changed files with 0 additions and 6 deletions
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
#include <AK/Debug.h>
|
#include <AK/Debug.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <LibJS/Interpreter.h>
|
|
||||||
#include <LibJS/Parser.h>
|
|
||||||
#include <LibTextCodec/Decoder.h>
|
#include <LibTextCodec/Decoder.h>
|
||||||
#include <LibWeb/DOM/Document.h>
|
#include <LibWeb/DOM/Document.h>
|
||||||
#include <LibWeb/DOM/Event.h>
|
#include <LibWeb/DOM/Event.h>
|
||||||
|
@ -23,7 +21,6 @@ namespace Web::HTML {
|
||||||
|
|
||||||
HTMLScriptElement::HTMLScriptElement(DOM::Document& document, QualifiedName qualified_name)
|
HTMLScriptElement::HTMLScriptElement(DOM::Document& document, QualifiedName qualified_name)
|
||||||
: HTMLElement(document, move(qualified_name))
|
: HTMLElement(document, move(qualified_name))
|
||||||
, m_script_filename("(document)")
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,7 +288,6 @@ void HTMLScriptElement::prepare_script()
|
||||||
// Fetch a classic script given url, settings object, options, classic script CORS setting, and encoding.
|
// Fetch a classic script given url, settings object, options, classic script CORS setting, and encoding.
|
||||||
auto request = LoadRequest::create_for_url_on_page(url, document().page());
|
auto request = LoadRequest::create_for_url_on_page(url, document().page());
|
||||||
|
|
||||||
m_script_filename = url.to_string();
|
|
||||||
ResourceLoader::the().load(
|
ResourceLoader::the().load(
|
||||||
request,
|
request,
|
||||||
[this, url](auto data, auto&, auto) {
|
[this, url](auto data, auto&, auto) {
|
||||||
|
|
|
@ -62,8 +62,6 @@ private:
|
||||||
|
|
||||||
Function<void()> m_script_ready_callback;
|
Function<void()> m_script_ready_callback;
|
||||||
|
|
||||||
String m_script_filename;
|
|
||||||
|
|
||||||
RefPtr<Script> m_script;
|
RefPtr<Script> m_script;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue