diff --git a/Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn index 360b56b5b3..5c5116dde1 100644 --- a/Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn +++ b/Meta/gn/secondary/Userland/Libraries/LibWeb/HTML/BUILD.gn @@ -39,7 +39,6 @@ source_set("HTML") { "HTMLAudioElement.cpp", "HTMLBRElement.cpp", "HTMLBaseElement.cpp", - "HTMLBlinkElement.cpp", "HTMLBodyElement.cpp", "HTMLButtonElement.cpp", "HTMLCanvasElement.cpp", diff --git a/Userland/Libraries/LibWeb/CMakeLists.txt b/Userland/Libraries/LibWeb/CMakeLists.txt index f08c96b852..c5fa642a17 100644 --- a/Userland/Libraries/LibWeb/CMakeLists.txt +++ b/Userland/Libraries/LibWeb/CMakeLists.txt @@ -272,7 +272,6 @@ set(SOURCES HTML/HTMLAudioElement.cpp HTML/HTMLBRElement.cpp HTML/HTMLBaseElement.cpp - HTML/HTMLBlinkElement.cpp HTML/HTMLBodyElement.cpp HTML/HTMLButtonElement.cpp HTML/HTMLCanvasElement.cpp diff --git a/Userland/Libraries/LibWeb/DOM/ElementFactory.cpp b/Userland/Libraries/LibWeb/DOM/ElementFactory.cpp index 4707ee9a92..0646ce35c2 100644 --- a/Userland/Libraries/LibWeb/DOM/ElementFactory.cpp +++ b/Userland/Libraries/LibWeb/DOM/ElementFactory.cpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -282,8 +281,6 @@ static JS::NonnullGCPtr create_html_element(JS::Realm& realm, Document& return realm.heap().allocate(realm, document, move(qualified_name)); if (lowercase_tag_name == HTML::TagNames::base) return realm.heap().allocate(realm, document, move(qualified_name)); - if (lowercase_tag_name == HTML::TagNames::blink) - return realm.heap().allocate(realm, document, move(qualified_name)); if (lowercase_tag_name == HTML::TagNames::body) return realm.heap().allocate(realm, document, move(qualified_name)); if (lowercase_tag_name == HTML::TagNames::br) diff --git a/Userland/Libraries/LibWeb/Forward.h b/Userland/Libraries/LibWeb/Forward.h index 9010e1671c..d1944bb107 100644 --- a/Userland/Libraries/LibWeb/Forward.h +++ b/Userland/Libraries/LibWeb/Forward.h @@ -335,7 +335,6 @@ class HTMLAnchorElement; class HTMLAreaElement; class HTMLAudioElement; class HTMLBaseElement; -class HTMLBlinkElement; class HTMLBodyElement; class HTMLBRElement; class HTMLButtonElement; diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp deleted file mode 100644 index 011d576364..0000000000 --- a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2018-2020, Andreas Kling - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#include -#include -#include - -namespace Web::HTML { - -HTMLBlinkElement::HTMLBlinkElement(DOM::Document& document, DOM::QualifiedName qualified_name) - : HTMLElement(document, move(qualified_name)) - , m_timer(Platform::Timer::create()) -{ - m_timer->set_interval(500); - m_timer->on_timeout = [this] { blink(); }; - m_timer->start(); -} - -HTMLBlinkElement::~HTMLBlinkElement() = default; - -void HTMLBlinkElement::blink() -{ - if (!layout_node()) - return; - - layout_node()->set_visible(!layout_node()->is_visible()); - layout_node()->set_needs_display(); -} - -} diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.h b/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.h deleted file mode 100644 index 7c445e558f..0000000000 --- a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2018-2020, Andreas Kling - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include -#include - -namespace Web::HTML { - -class HTMLBlinkElement final : public HTMLElement { - WEB_PLATFORM_OBJECT(HTMLBlinkElement, HTMLElement); - -public: - virtual ~HTMLBlinkElement() override; - -private: - HTMLBlinkElement(DOM::Document&, DOM::QualifiedName); - - void blink(); - - NonnullRefPtr m_timer; -}; - -}