ソースを参照

LibWeb: Make all existing HTML elements "final"

Luke 5 年 前
コミット
a86ce7eaca

+ 1 - 1
Libraries/LibWeb/HTML/HTMLAnchorElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLAnchorElement : public HTMLElement {
+class HTMLAnchorElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLAnchorElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLBlinkElement.h

@@ -31,7 +31,7 @@
 
 namespace Web::HTML {
 
-class HTMLBlinkElement : public HTMLElement {
+class HTMLBlinkElement final : public HTMLElement {
 public:
     HTMLBlinkElement(DOM::Document&, const FlyString& local_name);
     virtual ~HTMLBlinkElement() override;

+ 1 - 1
Libraries/LibWeb/HTML/HTMLBodyElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLBodyElement : public HTMLElement {
+class HTMLBodyElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLBodyElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLCanvasElement.h

@@ -34,7 +34,7 @@ namespace Web::HTML {
 
 class LayoutDocument;
 
-class HTMLCanvasElement : public HTMLElement {
+class HTMLCanvasElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLCanvasElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLFontElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLFontElement : public HTMLElement {
+class HTMLFontElement final : public HTMLElement {
 public:
     HTMLFontElement(DOM::Document&, const FlyString& local_name);
     virtual ~HTMLFontElement() override;

+ 1 - 1
Libraries/LibWeb/HTML/HTMLFormElement.h

@@ -31,7 +31,7 @@
 
 namespace Web::HTML {
 
-class HTMLFormElement : public HTMLElement {
+class HTMLFormElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLFormElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLHRElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLHRElement : public HTMLElement {
+class HTMLHRElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLHRElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLHeadElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLHeadElement : public HTMLElement {
+class HTMLHeadElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLHeadElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLHeadingElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLHeadingElement : public HTMLElement {
+class HTMLHeadingElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLHeadingElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLHtmlElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLHtmlElement : public HTMLElement {
+class HTMLHtmlElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLHtmlElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLInputElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLInputElement : public HTMLElement {
+class HTMLInputElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLInputElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLScriptElement.h

@@ -31,7 +31,7 @@
 
 namespace Web::HTML {
 
-class HTMLScriptElement : public HTMLElement {
+class HTMLScriptElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLScriptElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLStyleElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLStyleElement : public HTMLElement {
+class HTMLStyleElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLStyleElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLTableRowElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLTableRowElement : public HTMLElement {
+class HTMLTableRowElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLTableRowElementWrapper;
 

+ 1 - 1
Libraries/LibWeb/HTML/HTMLTitleElement.h

@@ -30,7 +30,7 @@
 
 namespace Web::HTML {
 
-class HTMLTitleElement : public HTMLElement {
+class HTMLTitleElement final : public HTMLElement {
 public:
     using WrapperType = Bindings::HTMLTitleElementWrapper;