summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/AudioConstructor.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/CSSNamespace.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/ImageConstructor.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/MainThreadVM.h4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/NavigatorObject.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/NavigatorObject.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/WindowObject.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/WindowObject.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/Wrappable.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Bindings/Wrappable.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSConditionRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSImportRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSMediaRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSRuleList.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp12
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h8
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSSupportsRule.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaList.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaList.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaQuery.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaQueryList.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp9
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.h4
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp16
-rw-r--r--Userland/Libraries/LibWeb/CSS/Percentage.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/Selector.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/Selector.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleComputer.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleComputer.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.h2
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.cpp4
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h52
-rw-r--r--Userland/Libraries/LibWeb/DOM/AbortController.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/AbortController.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/AbortSignal.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/AbortSignal.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/CharacterData.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/CharacterData.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Comment.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/Comment.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/DOMEventListener.cpp10
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/DocumentFragment.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/DocumentType.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/DocumentType.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/Event.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/EventTarget.cpp9
-rw-r--r--Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/Position.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/ProcessingInstruction.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Range.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/Range.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/StaticRange.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/StaticRange.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Text.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/Text.h2
-rw-r--r--Userland/Libraries/LibWeb/DOM/TreeWalker.cpp4
-rw-r--r--Userland/Libraries/LibWeb/DOM/TreeWalker.h2
-rw-r--r--Userland/Libraries/LibWeb/DOMTreeModel.cpp4
-rw-r--r--Userland/Libraries/LibWeb/FontCache.h2
-rw-r--r--Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/BrowsingContext.h2
-rw-r--r--Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/DOMParser.cpp9
-rw-r--r--Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/EventLoop/Task.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/EventLoop/TaskQueue.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp5
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/History.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/ImageData.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/MessageChannel.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/MessagePort.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.h2
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h2
-rw-r--r--Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Scripting/Script.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Storage.cpp8
-rw-r--r--Userland/Libraries/LibWeb/HTML/TextMetrics.h2
-rw-r--r--Userland/Libraries/LibWeb/HTML/Window.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp2
-rw-r--r--Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp4
-rw-r--r--Userland/Libraries/LibWeb/InProcessWebView.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockContainer.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/BreakNode.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/ButtonBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/CanvasBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/CheckBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/FormattingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/FrameBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineNode.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/Label.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/LayoutPosition.h2
-rw-r--r--Userland/Libraries/LibWeb/Layout/LineBox.h2
-rw-r--r--Userland/Libraries/LibWeb/Layout/ListItemBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.h2
-rw-r--r--Userland/Libraries/LibWeb/Layout/Progress.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/RadioButton.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableCellBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableRowBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableRowGroupBox.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TextNode.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Loader/ContentFilter.cpp8
-rw-r--r--Userland/Libraries/LibWeb/Loader/FrameLoader.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Loader/ImageResource.cpp8
-rw-r--r--Userland/Libraries/LibWeb/Loader/Resource.cpp4
-rw-r--r--Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp4
-rw-r--r--Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Origin.h2
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Page/EventHandler.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Page/Page.cpp4
-rw-r--r--Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp4
-rw-r--r--Userland/Libraries/LibWeb/StylePropertiesModel.cpp4
-rw-r--r--Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp4
-rw-r--r--Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp4
-rw-r--r--Userland/Libraries/LibWeb/UIEvents/UIEvent.h2
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp4
-rw-r--r--Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp4
-rw-r--r--Userland/Libraries/LibWeb/XHR/ProgressEvent.h2
-rw-r--r--Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp4
237 files changed, 243 insertions, 730 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp
index 53656f0d55..b657468de5 100644
--- a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp
@@ -29,10 +29,6 @@ void AudioConstructor::initialize(JS::GlobalObject& global_object)
define_direct_property(vm.names.length, JS::Value(0), JS::Attribute::Configurable);
}
-AudioConstructor::~AudioConstructor()
-{
-}
-
JS::ThrowCompletionOr<JS::Value> AudioConstructor::call()
{
return vm().throw_completion<JS::TypeError>(global_object(), JS::ErrorType::ConstructorWithoutNew, "Audio");
diff --git a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.h b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.h
index 3c913c67ae..7aca1ea916 100644
--- a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.h
+++ b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.h
@@ -14,7 +14,7 @@ class AudioConstructor final : public JS::NativeFunction {
public:
explicit AudioConstructor(JS::GlobalObject&);
virtual void initialize(JS::GlobalObject&) override;
- virtual ~AudioConstructor() override;
+ virtual ~AudioConstructor() override = default;
virtual JS::ThrowCompletionOr<JS::Value> call() override;
virtual JS::ThrowCompletionOr<JS::Object*> construct(JS::FunctionObject& new_target) override;
diff --git a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp
index 56507ed776..818b0fd615 100644
--- a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp
@@ -18,10 +18,6 @@ CSSNamespace::CSSNamespace(JS::GlobalObject& global_object)
{
}
-CSSNamespace::~CSSNamespace()
-{
-}
-
void CSSNamespace::initialize(JS::GlobalObject& global_object)
{
Object::initialize(global_object);
diff --git a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.h b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.h
index 2791c54580..1ab81ef776 100644
--- a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.h
+++ b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.h
@@ -18,7 +18,7 @@ class CSSNamespace final : public JS::Object {
public:
explicit CSSNamespace(JS::GlobalObject&);
virtual void initialize(JS::GlobalObject&) override;
- virtual ~CSSNamespace() override;
+ virtual ~CSSNamespace() override = default;
private:
JS_DECLARE_NATIVE_FUNCTION(escape);
diff --git a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp
index 33789472ba..87913acdb1 100644
--- a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp
@@ -18,9 +18,5 @@ EventListenerWrapper::EventListenerWrapper(JS::GlobalObject& global_object, DOM:
{
}
-EventListenerWrapper::~EventListenerWrapper()
-{
-}
-
}
}
diff --git a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.h b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.h
index 1994089590..a90a539b74 100644
--- a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.h
+++ b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.h
@@ -16,7 +16,7 @@ class EventListenerWrapper final : public Wrapper {
public:
EventListenerWrapper(JS::GlobalObject&, DOM::IDLEventListener&);
- virtual ~EventListenerWrapper() override;
+ virtual ~EventListenerWrapper() override = default;
DOM::IDLEventListener& impl() { return *m_impl; }
DOM::IDLEventListener const& impl() const { return *m_impl; }
diff --git a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp
index 6456ac1b35..42c035f13f 100644
--- a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp
@@ -29,10 +29,6 @@ void ImageConstructor::initialize(JS::GlobalObject& global_object)
define_direct_property(vm.names.length, JS::Value(0), JS::Attribute::Configurable);
}
-ImageConstructor::~ImageConstructor()
-{
-}
-
JS::ThrowCompletionOr<JS::Value> ImageConstructor::call()
{
return vm().throw_completion<JS::TypeError>(global_object(), JS::ErrorType::ConstructorWithoutNew, "Image");
diff --git a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h
index b516216cfd..65cb94b706 100644
--- a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h
+++ b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.h
@@ -14,7 +14,7 @@ class ImageConstructor final : public JS::NativeFunction {
public:
explicit ImageConstructor(JS::GlobalObject&);
virtual void initialize(JS::GlobalObject&) override;
- virtual ~ImageConstructor() override;
+ virtual ~ImageConstructor() override = default;
virtual JS::ThrowCompletionOr<JS::Value> call() override;
virtual JS::ThrowCompletionOr<JS::Object*> construct(JS::FunctionObject& new_target) override;
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
index 3e0c063c10..1c152169d4 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
@@ -53,10 +53,6 @@ void LocationObject::initialize(JS::GlobalObject& global_object)
m_default_properties.extend(MUST(Object::internal_own_property_keys()));
}
-LocationObject::~LocationObject()
-{
-}
-
// https://html.spec.whatwg.org/multipage/history.html#relevant-document
DOM::Document const* LocationObject::relevant_document() const
{
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.h b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
index 3fab5e3698..ba2611be91 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
@@ -23,7 +23,7 @@ class LocationObject final : public JS::Object {
public:
explicit LocationObject(JS::GlobalObject&);
virtual void initialize(JS::GlobalObject&) override;
- virtual ~LocationObject() override;
+ virtual ~LocationObject() override = default;
virtual JS::ThrowCompletionOr<JS::Object*> internal_get_prototype_of() const override;
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override;
diff --git a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h
index ae7acfe2de..e4b9333eb5 100644
--- a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h
+++ b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.h
@@ -15,7 +15,7 @@
namespace Web::Bindings {
struct WebEngineCustomData final : public JS::VM::CustomData {
- virtual ~WebEngineCustomData() override { }
+ virtual ~WebEngineCustomData() override = default;
HTML::EventLoop event_loop;
};
@@ -27,7 +27,7 @@ struct WebEngineCustomJobCallbackData final : public JS::JobCallback::CustomData
{
}
- virtual ~WebEngineCustomJobCallbackData() override { }
+ virtual ~WebEngineCustomJobCallbackData() override = default;
HTML::EnvironmentSettingsObject& incumbent_settings;
OwnPtr<JS::ExecutionContext> active_script_context;
diff --git a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.cpp b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.cpp
index f75d538804..270f8ee965 100644
--- a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.cpp
@@ -40,10 +40,6 @@ void NavigatorObject::initialize(JS::GlobalObject& global_object)
define_direct_property("onLine", JS::Value(true), attr);
}
-NavigatorObject::~NavigatorObject()
-{
-}
-
JS_DEFINE_NATIVE_FUNCTION(NavigatorObject::user_agent_getter)
{
return JS::js_string(vm, ResourceLoader::the().user_agent());
diff --git a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
index 3125d35a40..8222caf20b 100644
--- a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
@@ -18,7 +18,7 @@ class NavigatorObject final : public JS::Object {
public:
NavigatorObject(JS::GlobalObject&);
virtual void initialize(JS::GlobalObject&) override;
- virtual ~NavigatorObject() override;
+ virtual ~NavigatorObject() override = default;
private:
JS_DECLARE_NATIVE_FUNCTION(user_agent_getter);
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
index acb1f1ca8f..f22d6cb87b 100644
--- a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
@@ -140,10 +140,6 @@ void WindowObject::initialize_global_object()
ADD_WINDOW_OBJECT_INTERFACES;
}
-WindowObject::~WindowObject()
-{
-}
-
void WindowObject::visit_edges(Visitor& visitor)
{
GlobalObject::visit_edges(visitor);
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.h b/Userland/Libraries/LibWeb/Bindings/WindowObject.h
index f50780828e..7b579f2805 100644
--- a/Userland/Libraries/LibWeb/Bindings/WindowObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.h
@@ -32,7 +32,7 @@ class WindowObject
public:
explicit WindowObject(HTML::Window&);
virtual void initialize_global_object() override;
- virtual ~WindowObject() override;
+ virtual ~WindowObject() override = default;
HTML::Window& impl() { return *m_impl; }
const HTML::Window& impl() const { return *m_impl; }
diff --git a/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp b/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp
index 1c8b146630..9f5efd78fd 100644
--- a/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/Wrappable.cpp
@@ -10,10 +10,6 @@
namespace Web {
namespace Bindings {
-Wrappable::~Wrappable()
-{
-}
-
void Wrappable::set_wrapper(Wrapper& wrapper)
{
VERIFY(!m_wrapper);
diff --git a/Userland/Libraries/LibWeb/Bindings/Wrappable.h b/Userland/Libraries/LibWeb/Bindings/Wrappable.h
index ef0fcfdcb0..36a581f399 100644
--- a/Userland/Libraries/LibWeb/Bindings/Wrappable.h
+++ b/Userland/Libraries/LibWeb/Bindings/Wrappable.h
@@ -15,7 +15,7 @@ namespace Web::Bindings {
class Wrappable {
public:
- virtual ~Wrappable();
+ virtual ~Wrappable() = default;
void set_wrapper(Wrapper&);
Wrapper* wrapper() { return m_wrapper; }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
index 018315bd21..f6ac1a254b 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
@@ -13,10 +13,6 @@ CSSConditionRule::CSSConditionRule(NonnullRefPtrVector<CSSRule>&& rules)
{
}
-CSSConditionRule::~CSSConditionRule()
-{
-}
-
void CSSConditionRule::for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const
{
if (condition_matches())
diff --git a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.h b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.h
index 9c41847a2b..78f58a9655 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.h
@@ -17,7 +17,7 @@ class CSSConditionRule : public CSSGroupingRule {
AK_MAKE_NONMOVABLE(CSSConditionRule);
public:
- ~CSSConditionRule();
+ ~CSSConditionRule() = default;
virtual String condition_text() const = 0;
virtual void set_condition_text(String) = 0;
diff --git a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp
index 60584d02c5..66eb4e1dae 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp
@@ -14,10 +14,6 @@ CSSGroupingRule::CSSGroupingRule(NonnullRefPtrVector<CSSRule>&& rules)
{
}
-CSSGroupingRule::~CSSGroupingRule()
-{
-}
-
size_t CSSGroupingRule::insert_rule(StringView, size_t)
{
// https://www.w3.org/TR/cssom-1/#insert-a-css-rule
diff --git a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h
index 20859e98cd..7161c7edaf 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.h
@@ -19,7 +19,7 @@ class CSSGroupingRule : public CSSRule {
AK_MAKE_NONMOVABLE(CSSGroupingRule);
public:
- ~CSSGroupingRule();
+ ~CSSGroupingRule() = default;
CSSRuleList const& css_rules() const { return m_rules; }
CSSRuleList& css_rules() { return m_rules; }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
index c088d6030d..0715fb1395 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp
@@ -28,10 +28,6 @@ CSSImportRule::CSSImportRule(AK::URL url, DOM::Document& document)
set_resource(ResourceLoader::the().load_resource(Resource::Type::Generic, request));
}
-CSSImportRule::~CSSImportRule()
-{
-}
-
// https://www.w3.org/TR/cssom/#serialize-a-css-rule
String CSSImportRule::serialized() const
{
diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
index 1c6e37a55c..37c219005e 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h
@@ -26,7 +26,7 @@ public:
return adopt_ref(*new CSSImportRule(move(url), document));
}
- ~CSSImportRule();
+ ~CSSImportRule() = default;
const AK::URL& url() const { return m_url; }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp
index 484f79b4ca..c59feb2a63 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp
@@ -14,10 +14,6 @@ CSSMediaRule::CSSMediaRule(NonnullRefPtr<MediaList>&& media, NonnullRefPtrVector
{
}
-CSSMediaRule::~CSSMediaRule()
-{
-}
-
String CSSMediaRule::condition_text() const
{
return m_media->media_text();
diff --git a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.h b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.h
index 43f475824b..47b99a8ec5 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.h
@@ -23,7 +23,7 @@ public:
return adopt_ref(*new CSSMediaRule(move(media_queries), move(rules)));
}
- ~CSSMediaRule();
+ ~CSSMediaRule() = default;
virtual StringView class_name() const override { return "CSSMediaRule"; };
virtual Type type() const override { return Type::Media; };
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSRule.cpp
index 707cd21f7e..e6a2aac960 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSRule.cpp
@@ -8,10 +8,6 @@
namespace Web::CSS {
-CSSRule::~CSSRule()
-{
-}
-
// https://www.w3.org/TR/cssom/#dom-cssrule-csstext
String CSSRule::css_text() const
{
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRule.h b/Userland/Libraries/LibWeb/CSS/CSSRule.h
index 156c055436..125f38d63d 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSRule.h
@@ -22,7 +22,7 @@ class CSSRule
public:
using WrapperType = Bindings::CSSRuleWrapper;
- virtual ~CSSRule();
+ virtual ~CSSRule() = default;
enum class Type : u32 {
Style,
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
index 1f4e40447c..0ee0b1fd43 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
@@ -18,10 +18,6 @@ CSSRuleList::CSSRuleList(NonnullRefPtrVector<CSSRule>&& rules)
{
}
-CSSRuleList::~CSSRuleList()
-{
-}
-
bool CSSRuleList::is_supported_property_index(u32 index) const
{
// The object’s supported property indices are the numbers in the range zero to one less than the number of CSSRule objects represented by the collection.
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.h b/Userland/Libraries/LibWeb/CSS/CSSRuleList.h
index 1e88a87c9b..65d8e86693 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.h
@@ -27,7 +27,7 @@ public:
{
return adopt_ref(*new CSSRuleList(move(rules)));
}
- ~CSSRuleList();
+ ~CSSRuleList() = default;
RefPtr<CSSRule> item(size_t index) const
{
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp
index 726e4f6c0c..f41c4c0541 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp
@@ -16,14 +16,6 @@ PropertyOwningCSSStyleDeclaration::PropertyOwningCSSStyleDeclaration(Vector<Styl
{
}
-PropertyOwningCSSStyleDeclaration::~PropertyOwningCSSStyleDeclaration()
-{
-}
-
-CSSStyleDeclaration::~CSSStyleDeclaration()
-{
-}
-
String PropertyOwningCSSStyleDeclaration::item(size_t index) const
{
if (index >= m_properties.size())
@@ -43,10 +35,6 @@ ElementInlineCSSStyleDeclaration::ElementInlineCSSStyleDeclaration(DOM::Element&
{
}
-ElementInlineCSSStyleDeclaration::~ElementInlineCSSStyleDeclaration()
-{
-}
-
size_t PropertyOwningCSSStyleDeclaration::length() const
{
return m_properties.size();
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h
index 5c047e09f9..2383fca7cd 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.h
@@ -31,7 +31,7 @@ class CSSStyleDeclaration
public:
using WrapperType = Bindings::CSSStyleDeclarationWrapper;
- virtual ~CSSStyleDeclaration();
+ virtual ~CSSStyleDeclaration() = default;
virtual size_t length() const = 0;
virtual String item(size_t index) const = 0;
@@ -49,7 +49,7 @@ public:
virtual String serialized() const = 0;
protected:
- CSSStyleDeclaration() { }
+ CSSStyleDeclaration() = default;
};
class PropertyOwningCSSStyleDeclaration : public CSSStyleDeclaration {
@@ -61,7 +61,7 @@ public:
return adopt_ref(*new PropertyOwningCSSStyleDeclaration(move(properties), move(custom_properties)));
}
- virtual ~PropertyOwningCSSStyleDeclaration() override;
+ virtual ~PropertyOwningCSSStyleDeclaration() override = default;
virtual size_t length() const override;
virtual String item(size_t index) const override;
@@ -88,7 +88,7 @@ class ElementInlineCSSStyleDeclaration final : public PropertyOwningCSSStyleDecl
public:
static NonnullRefPtr<ElementInlineCSSStyleDeclaration> create(DOM::Element& element) { return adopt_ref(*new ElementInlineCSSStyleDeclaration(element)); }
static NonnullRefPtr<ElementInlineCSSStyleDeclaration> create_and_take_properties_from(DOM::Element& element, PropertyOwningCSSStyleDeclaration& declaration) { return adopt_ref(*new ElementInlineCSSStyleDeclaration(element, declaration)); }
- virtual ~ElementInlineCSSStyleDeclaration() override;
+ virtual ~ElementInlineCSSStyleDeclaration() override = default;
DOM::Element* element() { return m_element.ptr(); }
const DOM::Element* element() const { return m_element.ptr(); }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
index 79748719a4..9b6a2ad0c2 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
@@ -15,10 +15,6 @@ CSSStyleRule::CSSStyleRule(NonnullRefPtrVector<Selector>&& selectors, NonnullRef
{
}
-CSSStyleRule::~CSSStyleRule()
-{
-}
-
// https://www.w3.org/TR/cssom/#dom-cssstylerule-style
CSSStyleDeclaration* CSSStyleRule::style()
{
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
index e01a0a9742..23f8c1564c 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h
@@ -27,7 +27,7 @@ public:
return adopt_ref(*new CSSStyleRule(move(selectors), move(declaration)));
}
- virtual ~CSSStyleRule() override;
+ virtual ~CSSStyleRule() override = default;
const NonnullRefPtrVector<Selector>& selectors() const { return m_selectors; }
const CSSStyleDeclaration& declaration() const { return m_declaration; }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
index b44a87eb7e..4d3ca3b577 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp
@@ -17,10 +17,6 @@ CSSStyleSheet::CSSStyleSheet(NonnullRefPtrVector<CSSRule> rules)
{
}
-CSSStyleSheet::~CSSStyleSheet()
-{
-}
-
// https://www.w3.org/TR/cssom/#dom-cssstylesheet-insertrule
DOM::ExceptionOr<unsigned> CSSStyleSheet::insert_rule(StringView rule, unsigned index)
{
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
index 3b7a9a402f..a650009bab 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.h
@@ -29,7 +29,7 @@ public:
return adopt_ref(*new CSSStyleSheet(move(rules)));
}
- virtual ~CSSStyleSheet() override;
+ virtual ~CSSStyleSheet() override = default;
void set_owner_css_rule(CSSRule* rule) { m_owner_css_rule = rule; }
diff --git a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp
index 347852ff25..89e9b48d01 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp
@@ -15,10 +15,6 @@ CSSSupportsRule::CSSSupportsRule(NonnullRefPtr<Supports>&& supports, NonnullRefP
{
}
-CSSSupportsRule::~CSSSupportsRule()
-{
-}
-
String CSSSupportsRule::condition_text() const
{
// FIXME: Serializing supports rules!
diff --git a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.h b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.h
index a4a4e2a7b9..19d678865e 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.h
+++ b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.h
@@ -26,7 +26,7 @@ public:
return adopt_ref(*new CSSSupportsRule(move(supports), move(rules)));
}
- ~CSSSupportsRule();
+ ~CSSSupportsRule() = default;
virtual StringView class_name() const override { return "CSSSupportsRule"; };
virtual Type type() const override { return Type::Supports; };
diff --git a/Userland/Libraries/LibWeb/CSS/MediaList.cpp b/Userland/Libraries/LibWeb/CSS/MediaList.cpp
index 4d98ca7241..3edf00a746 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaList.cpp
+++ b/Userland/Libraries/LibWeb/CSS/MediaList.cpp
@@ -14,10 +14,6 @@ MediaList::MediaList(NonnullRefPtrVector<MediaQuery>&& media)
{
}
-MediaList::~MediaList()
-{
-}
-
// https://www.w3.org/TR/cssom-1/#dom-medialist-mediatext
String MediaList::media_text() const
{
diff --git a/Userland/Libraries/LibWeb/CSS/MediaList.h b/Userland/Libraries/LibWeb/CSS/MediaList.h
index adee044916..772a57c8e8 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaList.h
+++ b/Userland/Libraries/LibWeb/CSS/MediaList.h
@@ -20,7 +20,7 @@ public:
{
return adopt_ref(*new MediaList(move(media)));
}
- ~MediaList();
+ ~MediaList() = default;
String media_text() const;
void set_media_text(String const&);
diff --git a/Userland/Libraries/LibWeb/CSS/MediaQuery.h b/Userland/Libraries/LibWeb/CSS/MediaQuery.h
index 44374c6c6d..f5092e7008 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaQuery.h
+++ b/Userland/Libraries/LibWeb/CSS/MediaQuery.h
@@ -205,7 +205,7 @@ struct MediaCondition {
String to_string() const;
private:
- MediaCondition() { }
+ MediaCondition() = default;
Type type;
Optional<MediaFeature> feature;
NonnullOwnPtrVector<MediaCondition> conditions;
diff --git a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp
index 776db6ea0f..7f1f63f60d 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp
+++ b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp
@@ -22,10 +22,6 @@ MediaQueryList::MediaQueryList(DOM::Document& document, NonnullRefPtrVector<Medi
evaluate();
}
-MediaQueryList::~MediaQueryList()
-{
-}
-
// https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-media
String MediaQueryList::media() const
{
diff --git a/Userland/Libraries/LibWeb/CSS/MediaQueryList.h b/Userland/Libraries/LibWeb/CSS/MediaQueryList.h
index c138255363..456a414276 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaQueryList.h
+++ b/Userland/Libraries/LibWeb/CSS/MediaQueryList.h
@@ -34,7 +34,7 @@ public:
return adopt_ref(*new MediaQueryList(document, move(media_queries)));
}
- virtual ~MediaQueryList() override;
+ virtual ~MediaQueryList() override = default;
String media() const;
bool matches() const;
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index 267ae7c73e..e48dec1f09 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -71,11 +71,6 @@ TokenStream<T>::TokenStream(Vector<T> const& tokens)
}
template<typename T>
-TokenStream<T>::~TokenStream()
-{
-}
-
-template<typename T>
bool TokenStream<T>::has_next_token()
{
return (size_t)(m_iterator_offset + 1) < m_tokens.size();
@@ -164,10 +159,6 @@ Parser::Parser(ParsingContext const& context, StringView input, String const& en
{
}
-Parser::~Parser()
-{
-}
-
NonnullRefPtr<CSSStyleSheet> Parser::parse_as_stylesheet()
{
return parse_a_stylesheet(m_token_stream);
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
index 91abaf2584..b1fe9ef240 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
@@ -59,7 +59,7 @@ template<typename T>
class TokenStream {
public:
explicit TokenStream(Vector<T> const&);
- ~TokenStream();
+ ~TokenStream() = default;
TokenStream(TokenStream<T> const&) = delete;
@@ -87,7 +87,7 @@ private:
class Parser {
public:
Parser(ParsingContext const&, StringView input, String const& encoding = "utf-8");
- ~Parser();
+ ~Parser() = default;
// The normal parser entry point, for parsing stylesheets.
NonnullRefPtr<CSSStyleSheet> parse_as_stylesheet();
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp b/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
index fe574b7d30..611a733139 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
@@ -25,16 +25,16 @@ DeclarationOrAtRule::DeclarationOrAtRule(StyleDeclarationRule declaration)
, m_declaration(move(declaration))
{
}
-DeclarationOrAtRule::~DeclarationOrAtRule() { }
+DeclarationOrAtRule::~DeclarationOrAtRule() = default;
StyleRule::StyleRule(StyleRule::Type type)
: m_type(type)
{
}
-StyleRule::~StyleRule() { }
+StyleRule::~StyleRule() = default;
-StyleBlockRule::StyleBlockRule() { }
-StyleBlockRule::~StyleBlockRule() { }
+StyleBlockRule::StyleBlockRule() = default;
+StyleBlockRule::~StyleBlockRule() = default;
StyleComponentValueRule::StyleComponentValueRule(Token token)
: m_type(StyleComponentValueRule::ComponentType::Token)
@@ -51,10 +51,10 @@ StyleComponentValueRule::StyleComponentValueRule(NonnullRefPtr<StyleBlockRule> b
, m_block(block)
{
}
-StyleComponentValueRule::~StyleComponentValueRule() { }
+StyleComponentValueRule::~StyleComponentValueRule() = default;
-StyleDeclarationRule::StyleDeclarationRule() { }
-StyleDeclarationRule::~StyleDeclarationRule() { }
+StyleDeclarationRule::StyleDeclarationRule() = default;
+StyleDeclarationRule::~StyleDeclarationRule() = default;
StyleFunctionRule::StyleFunctionRule(String name)
: m_name(move(name))
@@ -66,7 +66,7 @@ StyleFunctionRule::StyleFunctionRule(String name, Vector<StyleComponentValueRule
, m_values(move(values))
{
}
-StyleFunctionRule::~StyleFunctionRule() { }
+StyleFunctionRule::~StyleFunctionRule() = default;
template<class SeparatorType, class CollectionType>
void append_with_to_string(StringBuilder& builder, SeparatorType& separator, CollectionType& collection)
diff --git a/Userland/Libraries/LibWeb/CSS/Percentage.h b/Userland/Libraries/LibWeb/CSS/Percentage.h
index 8349da1920..c9479b514a 100644
--- a/Userland/Libraries/LibWeb/CSS/Percentage.h
+++ b/Userland/Libraries/LibWeb/CSS/Percentage.h
@@ -60,7 +60,7 @@ public:
{
}
- virtual ~PercentageOr() { }
+ virtual ~PercentageOr() = default;
PercentageOr<T>& operator=(T t)
{
diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp
index 296bc7ab6e..6caed5fd62 100644
--- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp
+++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp
@@ -19,10 +19,6 @@ ResolvedCSSStyleDeclaration::ResolvedCSSStyleDeclaration(DOM::Element& element)
{
}
-ResolvedCSSStyleDeclaration::~ResolvedCSSStyleDeclaration()
-{
-}
-
size_t ResolvedCSSStyleDeclaration::length() const
{
return 0;
diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.h b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.h
index 429b23ed5c..3fc5f67716 100644
--- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.h
+++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.h
@@ -17,7 +17,7 @@ public:
return adopt_ref(*new ResolvedCSSStyleDeclaration(element));
}
- virtual ~ResolvedCSSStyleDeclaration() override;
+ virtual ~ResolvedCSSStyleDeclaration() override = default;
virtual size_t length() const override;
virtual String item(size_t index) const override;
diff --git a/Userland/Libraries/LibWeb/CSS/Selector.cpp b/Userland/Libraries/LibWeb/CSS/Selector.cpp
index 14bac1c4e3..c2e7a8ca2e 100644
--- a/Userland/Libraries/LibWeb/CSS/Selector.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Selector.cpp
@@ -25,10 +25,6 @@ Selector::Selector(Vector<CompoundSelector>&& compound_selectors)
}
}
-Selector::~Selector()
-{
-}
-
// https://www.w3.org/TR/selectors-4/#specificity-rules
u32 Selector::specificity() const
{
diff --git a/Userland/Libraries/LibWeb/CSS/Selector.h b/Userland/Libraries/LibWeb/CSS/Selector.h
index 8d05b6e312..cbc8a874f0 100644
--- a/Userland/Libraries/LibWeb/CSS/Selector.h
+++ b/Userland/Libraries/LibWeb/CSS/Selector.h
@@ -132,7 +132,7 @@ public:
return adopt_ref(*new Selector(move(compound_selectors)));
}
- ~Selector();
+ ~Selector() = default;
Vector<CompoundSelector> const& compound_selectors() const { return m_compound_selectors; }
Optional<PseudoElement> pseudo_element() const { return m_pseudo_element; }
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
index 8d85470452..42ab41dcd1 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
@@ -30,10 +30,6 @@ StyleComputer::StyleComputer(DOM::Document& document)
{
}
-StyleComputer::~StyleComputer()
-{
-}
-
static StyleSheet& default_stylesheet()
{
static StyleSheet* sheet;
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.h b/Userland/Libraries/LibWeb/CSS/StyleComputer.h
index 2c688b3cc2..dcd2de17e3 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleComputer.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.h
@@ -48,7 +48,7 @@ private:
class StyleComputer {
public:
explicit StyleComputer(DOM::Document&);
- ~StyleComputer();
+ ~StyleComputer() = default;
DOM::Document& document() { return m_document; }
DOM::Document const& document() const { return m_document; }
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index a297e1274c..0374a4d617 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -15,10 +15,6 @@
namespace Web::CSS {
-StyleProperties::StyleProperties()
-{
-}
-
StyleProperties::StyleProperties(const StyleProperties& other)
: m_property_values(other.m_property_values)
{
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h
index 4d63dc36cd..1d5febe700 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h
@@ -18,7 +18,7 @@ namespace Web::CSS {
class StyleProperties : public RefCounted<StyleProperties> {
public:
- StyleProperties();
+ StyleProperties() = default;
explicit StyleProperties(const StyleProperties&);
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
index 12e87244a4..7376dd44e4 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
@@ -23,10 +23,6 @@ StyleValue::StyleValue(Type type)
{
}
-StyleValue::~StyleValue()
-{
-}
-
AngleStyleValue const& StyleValue::as_angle() const
{
VERIFY(is_angle());
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h
index 078c32c03d..c464108e12 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h
@@ -321,7 +321,7 @@ enum class PointerEvents {
class StyleValue : public RefCounted<StyleValue> {
public:
- virtual ~StyleValue();
+ virtual ~StyleValue() = default;
enum class Type {
Angle,
@@ -539,7 +539,7 @@ public:
{
return adopt_ref(*new BackgroundStyleValue(color, image, position, size, repeat, attachment, origin, clip));
}
- virtual ~BackgroundStyleValue() override { }
+ virtual ~BackgroundStyleValue() override = default;
size_t layer_count() const { return m_layer_count; }
@@ -583,7 +583,7 @@ public:
{
return adopt_ref(*new BackgroundRepeatStyleValue(repeat_x, repeat_y));
}
- virtual ~BackgroundRepeatStyleValue() override { }
+ virtual ~BackgroundRepeatStyleValue() override = default;
Repeat repeat_x() const { return m_repeat_x; }
Repeat repeat_y() const { return m_repeat_y; }
@@ -617,7 +617,7 @@ public:
{
return adopt_ref(*new BackgroundSizeStyleValue(size_x, size_y));
}
- virtual ~BackgroundSizeStyleValue() override { }
+ virtual ~BackgroundSizeStyleValue() override = default;
LengthPercentage size_x() const { return m_size_x; }
LengthPercentage size_y() const { return m_size_y; }
@@ -653,7 +653,7 @@ public:
{
return adopt_ref(*new BorderStyleValue(border_width, border_style, border_color));
}
- virtual ~BorderStyleValue() override { }
+ virtual ~BorderStyleValue() override = default;
NonnullRefPtr<StyleValue> border_width() const { return m_border_width; }
NonnullRefPtr<StyleValue> border_style() const { return m_border_style; }
@@ -684,7 +684,7 @@ public:
{
return adopt_ref(*new BorderRadiusStyleValue(horizontal_radius, vertical_radius));
}
- virtual ~BorderRadiusStyleValue() override { }
+ virtual ~BorderRadiusStyleValue() override = default;
LengthPercentage const& horizontal_radius() const { return m_horizontal_radius; }
LengthPercentage const& vertical_radius() const { return m_vertical_radius; }
@@ -725,7 +725,7 @@ public:
{
return adopt_ref(*new BoxShadowStyleValue(color, offset_x, offset_y, blur_radius, spread_distance, placement));
}
- virtual ~BoxShadowStyleValue() override { }
+ virtual ~BoxShadowStyleValue() override = default;
Color const& color() const { return m_color; }
Length const& offset_x() const { return m_offset_x; }
@@ -966,7 +966,7 @@ private:
class ColorStyleValue : public StyleValue {
public:
static NonnullRefPtr<ColorStyleValue> create(Color color);
- virtual ~ColorStyleValue() override { }
+ virtual ~ColorStyleValue() override = default;
Color color() const { return m_color; }
virtual String to_string() const override;
@@ -996,7 +996,7 @@ public:
{
return adopt_ref(*new CombinedBorderRadiusStyleValue(top_left, top_right, bottom_right, bottom_left));
}
- virtual ~CombinedBorderRadiusStyleValue() override { }
+ virtual ~CombinedBorderRadiusStyleValue() override = default;
NonnullRefPtr<BorderRadiusStyleValue> top_left() const { return m_top_left; }
NonnullRefPtr<BorderRadiusStyleValue> top_right() const { return m_top_right; }
@@ -1055,7 +1055,7 @@ public:
{
return adopt_ref(*new FlexStyleValue(grow, shrink, basis));
}
- virtual ~FlexStyleValue() override { }
+ virtual ~FlexStyleValue() override = default;
NonnullRefPtr<StyleValue> grow() const { return m_grow; }
NonnullRefPtr<StyleValue> shrink() const { return m_shrink; }
@@ -1086,7 +1086,7 @@ public:
{
return adopt_ref(*new FlexFlowStyleValue(flex_direction, flex_wrap));
}
- virtual ~FlexFlowStyleValue() override { }
+ virtual ~FlexFlowStyleValue() override = default;
NonnullRefPtr<StyleValue> flex_direction() const { return m_flex_direction; }
NonnullRefPtr<StyleValue> flex_wrap() const { return m_flex_wrap; }
@@ -1108,7 +1108,7 @@ private:
class FontStyleValue final : public StyleValue {
public:
static NonnullRefPtr<FontStyleValue> create(NonnullRefPtr<StyleValue> font_style, NonnullRefPtr<StyleValue> font_weight, NonnullRefPtr<StyleValue> font_size, NonnullRefPtr<StyleValue> line_height, NonnullRefPtr<StyleValue> font_families) { return adopt_ref(*new FontStyleValue(font_style, font_weight, font_size, line_height, font_families)); }
- virtual ~FontStyleValue() override { }
+ virtual ~FontStyleValue() override = default;
NonnullRefPtr<StyleValue> font_style() const { return m_font_style; }
NonnullRefPtr<StyleValue> font_weight() const { return m_font_weight; }
@@ -1172,7 +1172,7 @@ public:
{
return adopt_ref(*new IdentifierStyleValue(id));
}
- virtual ~IdentifierStyleValue() override { }
+ virtual ~IdentifierStyleValue() override = default;
CSS::ValueID id() const { return m_id; }
@@ -1205,7 +1205,7 @@ class ImageStyleValue final
, public ImageResourceClient {
public:
static NonnullRefPtr<ImageStyleValue> create(AK::URL const& url) { return adopt_ref(*new ImageStyleValue(url)); }
- virtual ~ImageStyleValue() override { }
+ virtual ~ImageStyleValue() override = default;
virtual String to_string() const override;
@@ -1230,7 +1230,7 @@ public:
static NonnullRefPtr<InheritStyleValue> instance = adopt_ref(*new InheritStyleValue);
return instance;
}
- virtual ~InheritStyleValue() override { }
+ virtual ~InheritStyleValue() override = default;
String to_string() const override { return "inherit"; }
@@ -1248,7 +1248,7 @@ public:
static NonnullRefPtr<InitialStyleValue> instance = adopt_ref(*new InitialStyleValue);
return instance;
}
- virtual ~InitialStyleValue() override { }
+ virtual ~InitialStyleValue() override = default;
String to_string() const override { return "initial"; }
@@ -1262,7 +1262,7 @@ private:
class LengthStyleValue : public StyleValue {
public:
static NonnullRefPtr<LengthStyleValue> create(Length const&);
- virtual ~LengthStyleValue() override { }
+ virtual ~LengthStyleValue() override = default;
Length const& length() const { return m_length; }
@@ -1300,7 +1300,7 @@ public:
{
return adopt_ref(*new ListStyleStyleValue(position, image, style_type));
}
- virtual ~ListStyleStyleValue() override { }
+ virtual ~ListStyleStyleValue() override = default;
NonnullRefPtr<StyleValue> position() const { return m_position; }
NonnullRefPtr<StyleValue> image() const { return m_image; }
@@ -1380,7 +1380,7 @@ public:
{
return adopt_ref(*new OverflowStyleValue(overflow_x, overflow_y));
}
- virtual ~OverflowStyleValue() override { }
+ virtual ~OverflowStyleValue() override = default;
NonnullRefPtr<StyleValue> overflow_x() const { return m_overflow_x; }
NonnullRefPtr<StyleValue> overflow_y() const { return m_overflow_y; }
@@ -1405,7 +1405,7 @@ public:
{
return adopt_ref(*new PercentageStyleValue(move(percentage)));
}
- virtual ~PercentageStyleValue() override { }
+ virtual ~PercentageStyleValue() override = default;
Percentage const& percentage() const { return m_percentage; }
Percentage& percentage() { return m_percentage; }
@@ -1428,7 +1428,7 @@ public:
{
return adopt_ref(*new PositionStyleValue(edge_x, offset_x, edge_y, offset_y));
}
- virtual ~PositionStyleValue() override { }
+ virtual ~PositionStyleValue() override = default;
PositionEdge edge_x() const { return m_edge_x; }
LengthPercentage const& offset_x() const { return m_offset_x; }
@@ -1499,7 +1499,7 @@ public:
{
return adopt_ref(*new StringStyleValue(string));
}
- virtual ~StringStyleValue() override { }
+ virtual ~StringStyleValue() override = default;
String to_string() const override { return m_string; }
@@ -1523,7 +1523,7 @@ public:
{
return adopt_ref(*new TextDecorationStyleValue(line, thickness, style, color));
}
- virtual ~TextDecorationStyleValue() override { }
+ virtual ~TextDecorationStyleValue() override = default;
NonnullRefPtr<StyleValue> line() const { return m_line; }
NonnullRefPtr<StyleValue> thickness() const { return m_thickness; }
@@ -1587,7 +1587,7 @@ public:
{
return adopt_ref(*new TransformationStyleValue(transform_function, move(values)));
}
- virtual ~TransformationStyleValue() override { }
+ virtual ~TransformationStyleValue() override = default;
CSS::TransformFunction transform_function() const { return m_transform_function; }
NonnullRefPtrVector<StyleValue> values() const { return m_values; }
@@ -1612,7 +1612,7 @@ public:
{
return adopt_ref(*new UnresolvedStyleValue(move(values), contains_var));
}
- virtual ~UnresolvedStyleValue() override { }
+ virtual ~UnresolvedStyleValue() override = default;
virtual String to_string() const override;
@@ -1638,7 +1638,7 @@ public:
static NonnullRefPtr<UnsetStyleValue> instance = adopt_ref(*new UnsetStyleValue);
return instance;
}
- virtual ~UnsetStyleValue() override { }
+ virtual ~UnsetStyleValue() override = default;
String to_string() const override { return "unset"; }
diff --git a/Userland/Libraries/LibWeb/DOM/AbortController.cpp b/Userland/Libraries/LibWeb/DOM/AbortController.cpp
index f218c5fe4e..4e92ee301e 100644
--- a/Userland/Libraries/LibWeb/DOM/AbortController.cpp
+++ b/Userland/Libraries/LibWeb/DOM/AbortController.cpp
@@ -15,10 +15,6 @@ AbortController::AbortController()
{
}
-AbortController::~AbortController()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-abortcontroller-abort
void AbortController::abort(JS::Value reason)
{
diff --git a/Userland/Libraries/LibWeb/DOM/AbortController.h b/Userland/Libraries/LibWeb/DOM/AbortController.h
index a084fbe044..dc616ecc67 100644
--- a/Userland/Libraries/LibWeb/DOM/AbortController.h
+++ b/Userland/Libraries/LibWeb/DOM/AbortController.h
@@ -34,7 +34,7 @@ public:
return AbortController::create();
}
- virtual ~AbortController() override;
+ virtual ~AbortController() override = default;
// https://dom.spec.whatwg.org/#dom-abortcontroller-signal
NonnullRefPtr<AbortSignal> signal() const { return m_signal; }
diff --git a/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp b/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp
index f019050513..e98893d46f 100644
--- a/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp
+++ b/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp
@@ -19,10 +19,6 @@ AbortSignal::AbortSignal()
{
}
-AbortSignal::~AbortSignal()
-{
-}
-
JS::Object* AbortSignal::create_wrapper(JS::GlobalObject& global_object)
{
return wrap(global_object, *this);
diff --git a/Userland/Libraries/LibWeb/DOM/AbortSignal.h b/Userland/Libraries/LibWeb/DOM/AbortSignal.h
index 180270ee34..fd45590a27 100644
--- a/Userland/Libraries/LibWeb/DOM/AbortSignal.h
+++ b/Userland/Libraries/LibWeb/DOM/AbortSignal.h
@@ -37,7 +37,7 @@ public:
return AbortSignal::create();
}
- virtual ~AbortSignal() override;
+ virtual ~AbortSignal() override = default;
void add_abort_algorithm(Function<void()>);
diff --git a/Userland/Libraries/LibWeb/DOM/CharacterData.cpp b/Userland/Libraries/LibWeb/DOM/CharacterData.cpp
index 95ce342b11..61016446af 100644
--- a/Userland/Libraries/LibWeb/DOM/CharacterData.cpp
+++ b/Userland/Libraries/LibWeb/DOM/CharacterData.cpp
@@ -15,10 +15,6 @@ CharacterData::CharacterData(Document& document, NodeType type, const String& da
{
}
-CharacterData::~CharacterData()
-{
-}
-
void CharacterData::set_data(String data)
{
if (m_data == data)
diff --git a/Userland/Libraries/LibWeb/DOM/CharacterData.h b/Userland/Libraries/LibWeb/DOM/CharacterData.h
index 82967ccc0d..329adbbea6 100644
--- a/Userland/Libraries/LibWeb/DOM/CharacterData.h
+++ b/Userland/Libraries/LibWeb/DOM/CharacterData.h
@@ -20,7 +20,7 @@ class CharacterData
public:
using WrapperType = Bindings::CharacterDataWrapper;
- virtual ~CharacterData() override;
+ virtual ~CharacterData() override = default;
const String& data() const { return m_data; }
void set_data(String);
diff --git a/Userland/Libraries/LibWeb/DOM/Comment.cpp b/Userland/Libraries/LibWeb/DOM/Comment.cpp
index 293250d00c..8b70cf501b 100644
--- a/Userland/Libraries/LibWeb/DOM/Comment.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Comment.cpp
@@ -15,10 +15,6 @@ Comment::Comment(Document& document, const String& data)
{
}
-Comment::~Comment()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-comment-comment
NonnullRefPtr<Comment> Comment::create_with_global_object(Bindings::WindowObject& window, String const& data)
{
diff --git a/Userland/Libraries/LibWeb/DOM/Comment.h b/Userland/Libraries/LibWeb/DOM/Comment.h
index 2d9c4d0646..14424adb46 100644
--- a/Userland/Libraries/LibWeb/DOM/Comment.h
+++ b/Userland/Libraries/LibWeb/DOM/Comment.h
@@ -16,7 +16,7 @@ public:
using WrapperType = Bindings::CommentWrapper;
explicit Comment(Document&, const String&);
- virtual ~Comment() override;
+ virtual ~Comment() override = default;
virtual FlyString node_name() const override { return "#comment"; }
diff --git a/Userland/Libraries/LibWeb/DOM/DOMEventListener.cpp b/Userland/Libraries/LibWeb/DOM/DOMEventListener.cpp
index 5002a72a37..39ceba325e 100644
--- a/Userland/Libraries/LibWeb/DOM/DOMEventListener.cpp
+++ b/Userland/Libraries/LibWeb/DOM/DOMEventListener.cpp
@@ -9,12 +9,6 @@
#include <LibWeb/DOM/IDLEventListener.h>
namespace Web::DOM {
-
-DOMEventListener::DOMEventListener()
-{
-}
-DOMEventListener::~DOMEventListener()
-{
-}
-
+DOMEventListener::DOMEventListener() = default;
+DOMEventListener::~DOMEventListener() = default;
}
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp
index 53478cf250..ba994bc65d 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Document.cpp
@@ -92,9 +92,7 @@ Document::Document(const AK::URL& url)
});
}
-Document::~Document()
-{
-}
+Document::~Document() = default;
void Document::removed_last_ref()
{
diff --git a/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp b/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp
index 26c4075e8b..67dc77eea2 100644
--- a/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp
+++ b/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp
@@ -14,10 +14,6 @@ DocumentFragment::DocumentFragment(Document& document)
{
}
-DocumentFragment::~DocumentFragment()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-documentfragment-documentfragment
NonnullRefPtr<DocumentFragment> DocumentFragment::create_with_global_object(Bindings::WindowObject& window)
{
diff --git a/Userland/Libraries/LibWeb/DOM/DocumentFragment.h b/Userland/Libraries/LibWeb/DOM/DocumentFragment.h
index 2d3aca8e44..c418194f20 100644
--- a/Userland/Libraries/LibWeb/DOM/DocumentFragment.h
+++ b/Userland/Libraries/LibWeb/DOM/DocumentFragment.h
@@ -22,7 +22,7 @@ public:
static NonnullRefPtr<DocumentFragment> create_with_global_object(Bindings::WindowObject& window);
explicit DocumentFragment(Document& document);
- virtual ~DocumentFragment() override;
+ virtual ~DocumentFragment() override = default;
virtual FlyString node_name() const override { return "#document-fragment"; }
diff --git a/Userland/Libraries/LibWeb/DOM/DocumentType.cpp b/Userland/Libraries/LibWeb/DOM/DocumentType.cpp
index 86ac846aa1..1f03de4657 100644
--- a/Userland/Libraries/LibWeb/DOM/DocumentType.cpp
+++ b/Userland/Libraries/LibWeb/DOM/DocumentType.cpp
@@ -13,8 +13,4 @@ DocumentType::DocumentType(Document& document)
{
}
-DocumentType::~DocumentType()
-{
-}
-
}
diff --git a/Userland/Libraries/LibWeb/DOM/DocumentType.h b/Userland/Libraries/LibWeb/DOM/DocumentType.h
index b40389ab9f..d5977a0208 100644
--- a/Userland/Libraries/LibWeb/DOM/DocumentType.h
+++ b/Userland/Libraries/LibWeb/DOM/DocumentType.h
@@ -24,7 +24,7 @@ public:
}
explicit DocumentType(Document&);
- virtual ~DocumentType() override;
+ virtual ~DocumentType() override = default;
virtual FlyString node_name() const override { return "#doctype"; }
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp
index de3ac9d8bd..acfd9b07a5 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Element.cpp
@@ -47,9 +47,7 @@ Element::Element(Document& document, DOM::QualifiedName qualified_name)
make_html_uppercased_qualified_name();
}
-Element::~Element()
-{
-}
+Element::~Element() = default;
// https://dom.spec.whatwg.org/#dom-element-getattribute
String Element::get_attribute(const FlyString& name) const
diff --git a/Userland/Libraries/LibWeb/DOM/Event.h b/Userland/Libraries/LibWeb/DOM/Event.h
index 80963e100d..23d25f040e 100644
--- a/Userland/Libraries/LibWeb/DOM/Event.h
+++ b/Userland/Libraries/LibWeb/DOM/Event.h
@@ -56,7 +56,7 @@ public:
return Event::create(event_name, event_init);
}
- virtual ~Event() { }
+ virtual ~Event() = default;
double time_stamp() const;
diff --git a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp
index 77419de0c5..274531e5c4 100644
--- a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp
+++ b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp
@@ -37,13 +37,8 @@
namespace Web::DOM {
-EventTarget::EventTarget()
-{
-}
-
-EventTarget::~EventTarget()
-{
-}
+EventTarget::EventTarget() = default;
+EventTarget::~EventTarget() = default;
// https://dom.spec.whatwg.org/#concept-flatten-options
static bool flatten_event_listener_options(Variant<EventListenerOptions, bool> const& options)
diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
index 64520f439e..c4f4bb7c63 100644
--- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
+++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp
@@ -18,9 +18,7 @@ HTMLCollection::HTMLCollection(ParentNode& root, Function<bool(Element const&)>
{
}
-HTMLCollection::~HTMLCollection()
-{
-}
+HTMLCollection::~HTMLCollection() = default;
Vector<NonnullRefPtr<Element>> HTMLCollection::collect_matching_elements() const
{
diff --git a/Userland/Libraries/LibWeb/DOM/Position.h b/Userland/Libraries/LibWeb/DOM/Position.h
index 1fc5737af2..a4fe55a57e 100644
--- a/Userland/Libraries/LibWeb/DOM/Position.h
+++ b/Userland/Libraries/LibWeb/DOM/Position.h
@@ -15,7 +15,7 @@ namespace Web::DOM {
class Position {
public:
- Position() { }
+ Position() = default;
Position(Node&, unsigned offset);
bool is_valid() const { return m_node; }
diff --git a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp
index 577eba2b2c..c1cc2f2dce 100644
--- a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp
+++ b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp
@@ -15,8 +15,4 @@ ProcessingInstruction::ProcessingInstruction(Document& document, const String& d
{
}
-ProcessingInstruction::~ProcessingInstruction()
-{
-}
-
}
diff --git a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.h b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.h
index 5767344047..f7b1849838 100644
--- a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.h
+++ b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.h
@@ -16,7 +16,7 @@ public:
using WrapperType = Bindings::ProcessingInstructionWrapper;
ProcessingInstruction(Document&, const String& data, const String& target);
- virtual ~ProcessingInstruction() override;
+ virtual ~ProcessingInstruction() override = default;
virtual FlyString node_name() const override { return m_target; }
diff --git a/Userland/Libraries/LibWeb/DOM/Range.cpp b/Userland/Libraries/LibWeb/DOM/Range.cpp
index 9daf788987..a989de8432 100644
--- a/Userland/Libraries/LibWeb/DOM/Range.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Range.cpp
@@ -43,10 +43,6 @@ Range::Range(Node& start_container, u32 start_offset, Node& end_container, u32 e
{
}
-Range::~Range()
-{
-}
-
// https://dom.spec.whatwg.org/#concept-range-root
Node& Range::root()
{
diff --git a/Userland/Libraries/LibWeb/DOM/Range.h b/Userland/Libraries/LibWeb/DOM/Range.h
index 1c84c0b34a..64047345d1 100644
--- a/Userland/Libraries/LibWeb/DOM/Range.h
+++ b/Userland/Libraries/LibWeb/DOM/Range.h
@@ -15,7 +15,7 @@ class Range final : public AbstractRange {
public:
using WrapperType = Bindings::RangeWrapper;
- virtual ~Range() override;
+ virtual ~Range() override = default;
static NonnullRefPtr<Range> create(Document&);
static NonnullRefPtr<Range> create(HTML::Window&);
diff --git a/Userland/Libraries/LibWeb/DOM/StaticRange.cpp b/Userland/Libraries/LibWeb/DOM/StaticRange.cpp
index ec5ba26200..aadea6b36d 100644
--- a/Userland/Libraries/LibWeb/DOM/StaticRange.cpp
+++ b/Userland/Libraries/LibWeb/DOM/StaticRange.cpp
@@ -17,10 +17,6 @@ StaticRange::StaticRange(Node& start_container, u32 start_offset, Node& end_cont
{
}
-StaticRange::~StaticRange()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-staticrange-staticrange
ExceptionOr<NonnullRefPtr<StaticRange>> StaticRange::create_with_global_object(JS::GlobalObject&, StaticRangeInit& init)
{
diff --git a/Userland/Libraries/LibWeb/DOM/StaticRange.h b/Userland/Libraries/LibWeb/DOM/StaticRange.h
index 9e99d0c0d1..69dfaef249 100644
--- a/Userland/Libraries/LibWeb/DOM/StaticRange.h
+++ b/Userland/Libraries/LibWeb/DOM/StaticRange.h
@@ -23,7 +23,7 @@ class StaticRange final : public AbstractRange {
public:
using WrapperType = Bindings::StaticRangeWrapper;
- virtual ~StaticRange() override;
+ virtual ~StaticRange() override = default;
static ExceptionOr<NonnullRefPtr<StaticRange>> create_with_global_object(JS::GlobalObject&, StaticRangeInit& init);
diff --git a/Userland/Libraries/LibWeb/DOM/Text.cpp b/Userland/Libraries/LibWeb/DOM/Text.cpp
index 22df127689..27d8783984 100644
--- a/Userland/Libraries/LibWeb/DOM/Text.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Text.cpp
@@ -16,10 +16,6 @@ Text::Text(Document& document, const String& data)
{
}
-Text::~Text()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-text-text
NonnullRefPtr<Text> Text::create_with_global_object(Bindings::WindowObject& window, String const& data)
{
diff --git a/Userland/Libraries/LibWeb/DOM/Text.h b/Userland/Libraries/LibWeb/DOM/Text.h
index e6bf980875..3bf0646315 100644
--- a/Userland/Libraries/LibWeb/DOM/Text.h
+++ b/Userland/Libraries/LibWeb/DOM/Text.h
@@ -17,7 +17,7 @@ public:
using WrapperType = Bindings::TextWrapper;
explicit Text(Document&, const String&);
- virtual ~Text() override;
+ virtual ~Text() override = default;
static NonnullRefPtr<Text> create_with_global_object(Bindings::WindowObject& window, String const& data);
diff --git a/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp b/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp
index f63c4a52ab..4649bfcb20 100644
--- a/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp
+++ b/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp
@@ -22,10 +22,6 @@ TreeWalker::TreeWalker(Node& root)
{
}
-TreeWalker::~TreeWalker()
-{
-}
-
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
NonnullRefPtr<TreeWalker> TreeWalker::create(Node& root, unsigned what_to_show, RefPtr<NodeFilter> filter)
{
diff --git a/Userland/Libraries/LibWeb/DOM/TreeWalker.h b/Userland/Libraries/LibWeb/DOM/TreeWalker.h
index 0701a2b8f7..2a132fbb8a 100644
--- a/Userland/Libraries/LibWeb/DOM/TreeWalker.h
+++ b/Userland/Libraries/LibWeb/DOM/TreeWalker.h
@@ -20,7 +20,7 @@ public:
using WrapperType = Bindings::TreeWalkerWrapper;
static NonnullRefPtr<TreeWalker> create(Node& root, unsigned what_to_show, RefPtr<NodeFilter>);
- virtual ~TreeWalker() override;
+ virtual ~TreeWalker() override = default;
NonnullRefPtr<Node> current_node() const;
void set_current_node(Node&);
diff --git a/Userland/Libraries/LibWeb/DOMTreeModel.cpp b/Userland/Libraries/LibWeb/DOMTreeModel.cpp
index f3d3d15560..cd8a9302f5 100644
--- a/Userland/Libraries/LibWeb/DOMTreeModel.cpp
+++ b/Userland/Libraries/LibWeb/DOMTreeModel.cpp
@@ -25,9 +25,7 @@ DOMTreeModel::DOMTreeModel(JsonObject dom_tree, GUI::TreeView& tree_view)
map_dom_nodes_to_parent(nullptr, &m_dom_tree);
}
-DOMTreeModel::~DOMTreeModel()
-{
-}
+DOMTreeModel::~DOMTreeModel() = default;
GUI::ModelIndex DOMTreeModel::index(int row, int column, const GUI::ModelIndex& parent) const
{
diff --git a/Userland/Libraries/LibWeb/FontCache.h b/Userland/Libraries/LibWeb/FontCache.h
index 4dcee2d6db..44ad38063f 100644
--- a/Userland/Libraries/LibWeb/FontCache.h
+++ b/Userland/Libraries/LibWeb/FontCache.h
@@ -38,6 +38,6 @@ public:
void set(const FontSelector&, NonnullRefPtr<Gfx::Font>);
private:
- FontCache() { }
+ FontCache() = default;
mutable HashMap<FontSelector, NonnullRefPtr<Gfx::Font>> m_fonts;
};
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
index 28650df280..71f34b31d9 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
@@ -35,9 +35,7 @@ BrowsingContext::BrowsingContext(Page& page, HTML::BrowsingContextContainer* con
});
}
-BrowsingContext::~BrowsingContext()
-{
-}
+BrowsingContext::~BrowsingContext() = default;
void BrowsingContext::did_edit(Badge<EditEventHandler>)
{
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
index 70b938551f..96980f8608 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
@@ -30,7 +30,7 @@ public:
class ViewportClient {
public:
- virtual ~ViewportClient() { }
+ virtual ~ViewportClient() = default;
virtual void browsing_context_did_set_viewport_rect(Gfx::IntRect const&) = 0;
};
void register_viewport_client(ViewportClient&);
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp
index e4d8b533d7..5de8ae9ead 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp
@@ -19,9 +19,7 @@ BrowsingContextContainer::BrowsingContextContainer(DOM::Document& document, DOM:
{
}
-BrowsingContextContainer::~BrowsingContextContainer()
-{
-}
+BrowsingContextContainer::~BrowsingContextContainer() = default;
void BrowsingContextContainer::inserted()
{
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
index 830a6533c8..ff9824ab17 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
+++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
@@ -43,9 +43,7 @@ CanvasGradient::CanvasGradient(Type type)
{
}
-CanvasGradient::~CanvasGradient()
-{
-}
+CanvasGradient::~CanvasGradient() = default;
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop
DOM::ExceptionOr<void> CanvasGradient::add_color_stop(double offset, String const& color)
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp
index f9247d4dc6..f24efec906 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp
+++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp
@@ -28,9 +28,7 @@ CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement& element)
{
}
-CanvasRenderingContext2D::~CanvasRenderingContext2D()
-{
-}
+CanvasRenderingContext2D::~CanvasRenderingContext2D() = default;
void CanvasRenderingContext2D::set_fill_style(String style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/DOMParser.cpp b/Userland/Libraries/LibWeb/HTML/DOMParser.cpp
index ae2b255700..af780dce2b 100644
--- a/Userland/Libraries/LibWeb/HTML/DOMParser.cpp
+++ b/Userland/Libraries/LibWeb/HTML/DOMParser.cpp
@@ -10,13 +10,8 @@
namespace Web::HTML {
-DOMParser::DOMParser()
-{
-}
-
-DOMParser::~DOMParser()
-{
-}
+DOMParser::DOMParser() = default;
+DOMParser::~DOMParser() = default;
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring
NonnullRefPtr<DOM::Document> DOMParser::parse_from_string(String const& string, Bindings::DOMParserSupportedType type)
diff --git a/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp b/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp
index 7eb7e5e67b..5eb21ea45b 100644
--- a/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp
+++ b/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp
@@ -15,9 +15,7 @@ DOMStringMap::DOMStringMap(DOM::Element& associated_element)
{
}
-DOMStringMap::~DOMStringMap()
-{
-}
+DOMStringMap::~DOMStringMap() = default;
// https://html.spec.whatwg.org/multipage/dom.html#concept-domstringmap-pairs
Vector<DOMStringMap::NameValuePair> DOMStringMap::get_name_value_pairs() const
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
index 8eba3d3ddf..ed79ef718d 100644
--- a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
+++ b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
@@ -23,9 +23,7 @@ EventLoop::EventLoop()
{
}
-EventLoop::~EventLoop()
-{
-}
+EventLoop::~EventLoop() = default;
void EventLoop::schedule()
{
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.cpp
index 375220bd65..4e9a49b385 100644
--- a/Userland/Libraries/LibWeb/HTML/EventLoop/Task.cpp
+++ b/Userland/Libraries/LibWeb/HTML/EventLoop/Task.cpp
@@ -16,9 +16,7 @@ Task::Task(Source source, DOM::Document* document, Function<void()> steps)
{
}
-Task::~Task()
-{
-}
+Task::~Task() = default;
void Task::execute()
{
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/TaskQueue.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/TaskQueue.cpp
index 8a773faa89..2fe4681d8c 100644
--- a/Userland/Libraries/LibWeb/HTML/EventLoop/TaskQueue.cpp
+++ b/Userland/Libraries/LibWeb/HTML/EventLoop/TaskQueue.cpp
@@ -14,9 +14,7 @@ TaskQueue::TaskQueue(HTML::EventLoop& event_loop)
{
}
-TaskQueue::~TaskQueue()
-{
-}
+TaskQueue::~TaskQueue() = default;
void TaskQueue::add(NonnullOwnPtr<Task> task)
{
diff --git a/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.cpp b/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.cpp
index 6ba4217d3e..78e72e7d90 100644
--- a/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.cpp
+++ b/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.cpp
@@ -28,8 +28,5 @@ namespace Web::HTML {
ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE)
#undef __ENUMERATE
-GlobalEventHandlers::~GlobalEventHandlers()
-{
-}
-
+GlobalEventHandlers::~GlobalEventHandlers() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
index fca23d89a4..665b119027 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
@@ -13,9 +13,7 @@ HTMLAnchorElement::HTMLAnchorElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLAnchorElement::~HTMLAnchorElement()
-{
-}
+HTMLAnchorElement::~HTMLAnchorElement() = default;
void HTMLAnchorElement::parse_attribute(FlyString const& name, String const& value)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp
index 32cd339037..ea9b6ff47d 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp
@@ -13,9 +13,7 @@ HTMLAreaElement::HTMLAreaElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLAreaElement::~HTMLAreaElement()
-{
-}
+HTMLAreaElement::~HTMLAreaElement() = default;
void HTMLAreaElement::parse_attribute(FlyString const& name, String const& value)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp
index 213cd99fb8..1492fe4288 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp
@@ -13,8 +13,5 @@ HTMLAudioElement::HTMLAudioElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLAudioElement::~HTMLAudioElement()
-{
-}
-
+HTMLAudioElement::~HTMLAudioElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp
index 3180804aab..d83f910fa1 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp
@@ -15,9 +15,7 @@ HTMLBRElement::HTMLBRElement(DOM::Document& document, DOM::QualifiedName qualifi
{
}
-HTMLBRElement::~HTMLBRElement()
-{
-}
+HTMLBRElement::~HTMLBRElement() = default;
RefPtr<Layout::Node> HTMLBRElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp
index 6439cee064..19a73dfe84 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp
@@ -13,8 +13,5 @@ HTMLBaseElement::HTMLBaseElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLBaseElement::~HTMLBaseElement()
-{
-}
-
+HTMLBaseElement::~HTMLBaseElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp
index b4466274f5..ad52592bb6 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp
@@ -19,9 +19,7 @@ HTMLBlinkElement::HTMLBlinkElement(DOM::Document& document, DOM::QualifiedName q
m_timer->start();
}
-HTMLBlinkElement::~HTMLBlinkElement()
-{
-}
+HTMLBlinkElement::~HTMLBlinkElement() = default;
void HTMLBlinkElement::blink()
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
index b521f104a3..5d75290daa 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp
@@ -17,9 +17,7 @@ HTMLBodyElement::HTMLBodyElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLBodyElement::~HTMLBodyElement()
-{
-}
+HTMLBodyElement::~HTMLBodyElement() = default;
void HTMLBodyElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
index 1a19cba601..60eca9f5d5 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
@@ -49,9 +49,7 @@ HTMLButtonElement::HTMLButtonElement(DOM::Document& document, DOM::QualifiedName
};
}
-HTMLButtonElement::~HTMLButtonElement()
-{
-}
+HTMLButtonElement::~HTMLButtonElement() = default;
String HTMLButtonElement::type() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp
index c2565e7ddf..2f132faff9 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp
@@ -23,9 +23,7 @@ HTMLCanvasElement::HTMLCanvasElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLCanvasElement::~HTMLCanvasElement()
-{
-}
+HTMLCanvasElement::~HTMLCanvasElement() = default;
unsigned HTMLCanvasElement::width() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp
index fe8f12b01d..b44d558d8f 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp
@@ -13,8 +13,5 @@ HTMLDListElement::HTMLDListElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLDListElement::~HTMLDListElement()
-{
-}
-
+HTMLDListElement::~HTMLDListElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp
index 8766e3b8ec..39f81e6e2c 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp
@@ -13,8 +13,5 @@ HTMLDataElement::HTMLDataElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLDataElement::~HTMLDataElement()
-{
-}
-
+HTMLDataElement::~HTMLDataElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp
index 6d652b6ea6..c12efcd6a2 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp
@@ -13,8 +13,5 @@ HTMLDataListElement::HTMLDataListElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLDataListElement::~HTMLDataListElement()
-{
-}
-
+HTMLDataListElement::~HTMLDataListElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp
index 120d9e6523..ce365af098 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp
@@ -13,8 +13,5 @@ HTMLDetailsElement::HTMLDetailsElement(DOM::Document& document, DOM::QualifiedNa
{
}
-HTMLDetailsElement::~HTMLDetailsElement()
-{
-}
-
+HTMLDetailsElement::~HTMLDetailsElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp
index 2464a66472..5885e8ef08 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp
@@ -13,8 +13,5 @@ HTMLDialogElement::HTMLDialogElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLDialogElement::~HTMLDialogElement()
-{
-}
-
+HTMLDialogElement::~HTMLDialogElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp
index bd0782c88f..c75726db6d 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp
@@ -13,8 +13,5 @@ HTMLDirectoryElement::HTMLDirectoryElement(DOM::Document& document, DOM::Qualifi
{
}
-HTMLDirectoryElement::~HTMLDirectoryElement()
-{
-}
-
+HTMLDirectoryElement::~HTMLDirectoryElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp
index c59bdeb34f..74f6143665 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp
@@ -13,8 +13,5 @@ HTMLDivElement::HTMLDivElement(DOM::Document& document, DOM::QualifiedName quali
{
}
-HTMLDivElement::~HTMLDivElement()
-{
-}
-
+HTMLDivElement::~HTMLDivElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp
index 33e7e83b09..163f125c19 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp
@@ -34,9 +34,7 @@ HTMLElement::HTMLElement(DOM::Document& document, DOM::QualifiedName qualified_n
{
}
-HTMLElement::~HTMLElement()
-{
-}
+HTMLElement::~HTMLElement() = default;
HTMLElement::ContentEditableState HTMLElement::content_editable_state() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp
index 89dc39ec9e..75f9cd9b98 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp
@@ -13,8 +13,5 @@ HTMLEmbedElement::HTMLEmbedElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLEmbedElement::~HTMLEmbedElement()
-{
-}
-
+HTMLEmbedElement::~HTMLEmbedElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
index 2dcc97e37e..a5cac9f77c 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
@@ -13,8 +13,5 @@ HTMLFieldSetElement::HTMLFieldSetElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLFieldSetElement::~HTMLFieldSetElement()
-{
-}
-
+HTMLFieldSetElement::~HTMLFieldSetElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp
index 7f19f604a9..181f5a4157 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp
@@ -15,9 +15,7 @@ HTMLFontElement::HTMLFontElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLFontElement::~HTMLFontElement()
-{
-}
+HTMLFontElement::~HTMLFontElement() = default;
void HTMLFontElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
index 5175fcd158..253f385c49 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
@@ -27,9 +27,7 @@ HTMLFormElement::HTMLFormElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLFormElement::~HTMLFormElement()
-{
-}
+HTMLFormElement::~HTMLFormElement() = default;
void HTMLFormElement::submit_form(RefPtr<HTMLElement> submitter, bool from_submit_binding)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp
index c5163a9da8..6ac1110c6b 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp
@@ -13,8 +13,5 @@ HTMLFrameElement::HTMLFrameElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLFrameElement::~HTMLFrameElement()
-{
-}
-
+HTMLFrameElement::~HTMLFrameElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp
index a04fe95146..7e793918b6 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp
@@ -13,8 +13,5 @@ HTMLFrameSetElement::HTMLFrameSetElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLFrameSetElement::~HTMLFrameSetElement()
-{
-}
-
+HTMLFrameSetElement::~HTMLFrameSetElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp
index faf0d8e535..170973715a 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp
@@ -13,8 +13,5 @@ HTMLHRElement::HTMLHRElement(DOM::Document& document, DOM::QualifiedName qualifi
{
}
-HTMLHRElement::~HTMLHRElement()
-{
-}
-
+HTMLHRElement::~HTMLHRElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp
index 07bc984e42..e4533b2158 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp
@@ -13,8 +13,5 @@ HTMLHeadElement::HTMLHeadElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLHeadElement::~HTMLHeadElement()
-{
-}
-
+HTMLHeadElement::~HTMLHeadElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp
index 3388d36dc3..10b1c9b7d6 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp
@@ -13,8 +13,5 @@ HTMLHeadingElement::HTMLHeadingElement(DOM::Document& document, DOM::QualifiedNa
{
}
-HTMLHeadingElement::~HTMLHeadingElement()
-{
-}
-
+HTMLHeadingElement::~HTMLHeadingElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp
index af8391e3c5..db70fe4e33 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp
@@ -13,9 +13,7 @@ HTMLHtmlElement::HTMLHtmlElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLHtmlElement::~HTMLHtmlElement()
-{
-}
+HTMLHtmlElement::~HTMLHtmlElement() = default;
bool HTMLHtmlElement::should_use_body_background_properties() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp
index f4e2c6d1c4..25b80bb2f4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp
@@ -10,9 +10,7 @@
namespace Web::HTML {
-HTMLHyperlinkElementUtils::~HTMLHyperlinkElementUtils()
-{
-}
+HTMLHyperlinkElementUtils::~HTMLHyperlinkElementUtils() = default;
// https://html.spec.whatwg.org/multipage/links.html#reinitialise-url
void HTMLHyperlinkElementUtils::reinitialize_url() const
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp
index ded7d74ee7..8e50412bb1 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp
@@ -18,9 +18,7 @@ HTMLIFrameElement::HTMLIFrameElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLIFrameElement::~HTMLIFrameElement()
-{
-}
+HTMLIFrameElement::~HTMLIFrameElement() = default;
RefPtr<Layout::Node> HTMLIFrameElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
index 975f8bea66..d7d5bc5246 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp
@@ -44,9 +44,7 @@ HTMLImageElement::HTMLImageElement(DOM::Document& document, DOM::QualifiedName q
};
}
-HTMLImageElement::~HTMLImageElement()
-{
-}
+HTMLImageElement::~HTMLImageElement() = default;
void HTMLImageElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index f3f6265663..cb84f3cc87 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -33,9 +33,7 @@ HTMLInputElement::HTMLInputElement(DOM::Document& document, DOM::QualifiedName q
};
}
-HTMLInputElement::~HTMLInputElement()
-{
-}
+HTMLInputElement::~HTMLInputElement() = default;
RefPtr<Layout::Node> HTMLInputElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp
index 1b93806270..2c166fabd4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp
@@ -13,8 +13,5 @@ HTMLLIElement::HTMLLIElement(DOM::Document& document, DOM::QualifiedName qualifi
{
}
-HTMLLIElement::~HTMLLIElement()
-{
-}
-
+HTMLLIElement::~HTMLLIElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp
index bb7fc135ae..71f73e2b4e 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp
@@ -15,9 +15,7 @@ HTMLLabelElement::HTMLLabelElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLLabelElement::~HTMLLabelElement()
-{
-}
+HTMLLabelElement::~HTMLLabelElement() = default;
RefPtr<Layout::Node> HTMLLabelElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
index 8cb4aeb0cf..48247dba26 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
@@ -13,8 +13,5 @@ HTMLLegendElement::HTMLLegendElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLLegendElement::~HTMLLegendElement()
-{
-}
-
+HTMLLegendElement::~HTMLLegendElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
index 93888c2384..0addd9c0fb 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
@@ -21,9 +21,7 @@ HTMLLinkElement::HTMLLinkElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLLinkElement::~HTMLLinkElement()
-{
-}
+HTMLLinkElement::~HTMLLinkElement() = default;
void HTMLLinkElement::inserted()
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp
index c1ec674711..b8c68863f6 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp
@@ -13,8 +13,5 @@ HTMLMapElement::HTMLMapElement(DOM::Document& document, DOM::QualifiedName quali
{
}
-HTMLMapElement::~HTMLMapElement()
-{
-}
-
+HTMLMapElement::~HTMLMapElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp
index 069f2344f9..c70c667b12 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp
@@ -13,9 +13,7 @@ HTMLMarqueeElement::HTMLMarqueeElement(DOM::Document& document, DOM::QualifiedNa
{
}
-HTMLMarqueeElement::~HTMLMarqueeElement()
-{
-}
+HTMLMarqueeElement::~HTMLMarqueeElement() = default;
void HTMLMarqueeElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp
index 14965147ac..545984dae1 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp
@@ -14,9 +14,7 @@ HTMLMediaElement::HTMLMediaElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLMediaElement::~HTMLMediaElement()
-{
-}
+HTMLMediaElement::~HTMLMediaElement() = default;
// https://html.spec.whatwg.org/multipage/media.html#dom-navigator-canplaytype
Bindings::CanPlayTypeResult HTMLMediaElement::can_play_type(String const& type) const
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp
index 819afe7172..5b8405ff90 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp
@@ -13,8 +13,6 @@ HTMLMenuElement::HTMLMenuElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLMenuElement::~HTMLMenuElement()
-{
-}
+HTMLMenuElement::~HTMLMenuElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp
index 9686c2f77c..6812c46022 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp
@@ -13,8 +13,6 @@ HTMLMetaElement::HTMLMetaElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLMetaElement::~HTMLMetaElement()
-{
-}
+HTMLMetaElement::~HTMLMetaElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp
index e9ab30307e..0341aac4bb 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp
@@ -13,8 +13,6 @@ HTMLMeterElement::HTMLMeterElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLMeterElement::~HTMLMeterElement()
-{
-}
+HTMLMeterElement::~HTMLMeterElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp
index 05d5341688..4201d8b316 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp
@@ -13,8 +13,6 @@ HTMLModElement::HTMLModElement(DOM::Document& document, DOM::QualifiedName quali
{
}
-HTMLModElement::~HTMLModElement()
-{
-}
+HTMLModElement::~HTMLModElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp
index 7970108bf6..90ddc29efc 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp
@@ -13,8 +13,6 @@ HTMLOListElement::HTMLOListElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLOListElement::~HTMLOListElement()
-{
-}
+HTMLOListElement::~HTMLOListElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp
index d4586ac172..b4996336ba 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp
@@ -35,9 +35,7 @@ HTMLObjectElement::HTMLObjectElement(DOM::Document& document, DOM::QualifiedName
};
}
-HTMLObjectElement::~HTMLObjectElement()
-{
-}
+HTMLObjectElement::~HTMLObjectElement() = default;
void HTMLObjectElement::parse_attribute(const FlyString& name, const String& value)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp
index 68b644f948..648d9a686c 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp
@@ -13,8 +13,6 @@ HTMLOptGroupElement::HTMLOptGroupElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLOptGroupElement::~HTMLOptGroupElement()
-{
-}
+HTMLOptGroupElement::~HTMLOptGroupElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp
index c868d5fa24..1f2f707d98 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp
@@ -13,8 +13,6 @@ HTMLOptionElement::HTMLOptionElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLOptionElement::~HTMLOptionElement()
-{
-}
+HTMLOptionElement::~HTMLOptionElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp
index 4690543a87..9c43acc2ca 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp
@@ -13,8 +13,6 @@ HTMLOutputElement::HTMLOutputElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLOutputElement::~HTMLOutputElement()
-{
-}
+HTMLOutputElement::~HTMLOutputElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp
index 86cdb7cb6a..2e93713cb6 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp
@@ -13,8 +13,6 @@ HTMLParagraphElement::HTMLParagraphElement(DOM::Document& document, DOM::Qualifi
{
}
-HTMLParagraphElement::~HTMLParagraphElement()
-{
-}
+HTMLParagraphElement::~HTMLParagraphElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp
index 84ce93e931..93c88d92b3 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp
@@ -13,8 +13,6 @@ HTMLParamElement::HTMLParamElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLParamElement::~HTMLParamElement()
-{
-}
+HTMLParamElement::~HTMLParamElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp
index 90aa4fd981..c6e3bbea72 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp
@@ -13,8 +13,6 @@ HTMLPictureElement::HTMLPictureElement(DOM::Document& document, DOM::QualifiedNa
{
}
-HTMLPictureElement::~HTMLPictureElement()
-{
-}
+HTMLPictureElement::~HTMLPictureElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp
index ab3f812534..c21fee9871 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp
@@ -13,8 +13,6 @@ HTMLPreElement::HTMLPreElement(DOM::Document& document, DOM::QualifiedName quali
{
}
-HTMLPreElement::~HTMLPreElement()
-{
-}
+HTMLPreElement::~HTMLPreElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp
index e9536089b2..39711cf2d0 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp
@@ -15,9 +15,7 @@ HTMLProgressElement::HTMLProgressElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLProgressElement::~HTMLProgressElement()
-{
-}
+HTMLProgressElement::~HTMLProgressElement() = default;
RefPtr<Layout::Node> HTMLProgressElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp
index e66e990f57..552ecdfce7 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp
@@ -13,8 +13,6 @@ HTMLQuoteElement::HTMLQuoteElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLQuoteElement::~HTMLQuoteElement()
-{
-}
+HTMLQuoteElement::~HTMLQuoteElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
index 7aa6a0013b..e7c10dc074 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
@@ -24,9 +24,7 @@ HTMLScriptElement::HTMLScriptElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLScriptElement::~HTMLScriptElement()
-{
-}
+HTMLScriptElement::~HTMLScriptElement() = default;
void HTMLScriptElement::set_parser_document(Badge<HTMLParser>, DOM::Document& document)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
index 0f5e7fb4b2..84329b7610 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
@@ -16,9 +16,7 @@ HTMLSelectElement::HTMLSelectElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLSelectElement::~HTMLSelectElement()
-{
-}
+HTMLSelectElement::~HTMLSelectElement() = default;
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-select-options
RefPtr<HTMLOptionsCollection> const& HTMLSelectElement::options()
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
index 0633a12447..e3c72331df 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp
@@ -13,8 +13,6 @@ HTMLSlotElement::HTMLSlotElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLSlotElement::~HTMLSlotElement()
-{
-}
+HTMLSlotElement::~HTMLSlotElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp
index 40aefcf580..f682bf46e0 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp
@@ -13,8 +13,6 @@ HTMLSourceElement::HTMLSourceElement(DOM::Document& document, DOM::QualifiedName
{
}
-HTMLSourceElement::~HTMLSourceElement()
-{
-}
+HTMLSourceElement::~HTMLSourceElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp
index eec43d12fc..1fb05693d4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp
@@ -13,8 +13,6 @@ HTMLSpanElement::HTMLSpanElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLSpanElement::~HTMLSpanElement()
-{
-}
+HTMLSpanElement::~HTMLSpanElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp
index 2b1d24c55f..f16f2a324c 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp
@@ -16,9 +16,7 @@ HTMLStyleElement::HTMLStyleElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLStyleElement::~HTMLStyleElement()
-{
-}
+HTMLStyleElement::~HTMLStyleElement() = default;
void HTMLStyleElement::children_changed()
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp
index b6f925ede6..542de9fda5 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp
@@ -13,8 +13,6 @@ HTMLTableCaptionElement::HTMLTableCaptionElement(DOM::Document& document, DOM::Q
{
}
-HTMLTableCaptionElement::~HTMLTableCaptionElement()
-{
-}
+HTMLTableCaptionElement::~HTMLTableCaptionElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp
index 344d23bc11..76fdfd998c 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp
@@ -14,9 +14,7 @@ HTMLTableCellElement::HTMLTableCellElement(DOM::Document& document, DOM::Qualifi
{
}
-HTMLTableCellElement::~HTMLTableCellElement()
-{
-}
+HTMLTableCellElement::~HTMLTableCellElement() = default;
void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp
index 22eb43b711..97dfc3f6df 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp
@@ -13,8 +13,6 @@ HTMLTableColElement::HTMLTableColElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLTableColElement::~HTMLTableColElement()
-{
-}
+HTMLTableColElement::~HTMLTableColElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp
index d9a161ad25..1f67f983ec 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp
@@ -20,9 +20,7 @@ HTMLTableElement::HTMLTableElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLTableElement::~HTMLTableElement()
-{
-}
+HTMLTableElement::~HTMLTableElement() = default;
void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp
index fe3716d20c..2fea5861a9 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp
@@ -15,9 +15,7 @@ HTMLTableRowElement::HTMLTableRowElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLTableRowElement::~HTMLTableRowElement()
-{
-}
+HTMLTableRowElement::~HTMLTableRowElement() = default;
// https://html.spec.whatwg.org/multipage/tables.html#dom-tr-cells
NonnullRefPtr<DOM::HTMLCollection> HTMLTableRowElement::cells() const
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
index 7e0fa12378..326dffa95d 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp
@@ -18,9 +18,7 @@ HTMLTableSectionElement::HTMLTableSectionElement(DOM::Document& document, DOM::Q
{
}
-HTMLTableSectionElement::~HTMLTableSectionElement()
-{
-}
+HTMLTableSectionElement::~HTMLTableSectionElement() = default;
// https://html.spec.whatwg.org/multipage/tables.html#dom-tbody-rows
NonnullRefPtr<DOM::HTMLCollection> HTMLTableSectionElement::rows() const
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp
index 27b917af46..ff85bac388 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp
@@ -16,9 +16,7 @@ HTMLTemplateElement::HTMLTemplateElement(DOM::Document& document, DOM::Qualified
m_content->set_host(this);
}
-HTMLTemplateElement::~HTMLTemplateElement()
-{
-}
+HTMLTemplateElement::~HTMLTemplateElement() = default;
DOM::Document& HTMLTemplateElement::appropriate_template_contents_owner_document(DOM::Document& document)
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
index 12db1f4d82..35a766e4c7 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp
@@ -13,8 +13,6 @@ HTMLTextAreaElement::HTMLTextAreaElement(DOM::Document& document, DOM::Qualified
{
}
-HTMLTextAreaElement::~HTMLTextAreaElement()
-{
-}
+HTMLTextAreaElement::~HTMLTextAreaElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp
index 61a8d9b883..c40869599f 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp
@@ -13,8 +13,6 @@ HTMLTimeElement::HTMLTimeElement(DOM::Document& document, DOM::QualifiedName qua
{
}
-HTMLTimeElement::~HTMLTimeElement()
-{
-}
+HTMLTimeElement::~HTMLTimeElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp
index f86bc5398c..0942f0d6d1 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp
@@ -15,9 +15,7 @@ HTMLTitleElement::HTMLTitleElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLTitleElement::~HTMLTitleElement()
-{
-}
+HTMLTitleElement::~HTMLTitleElement() = default;
void HTMLTitleElement::children_changed()
{
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp
index f30233d266..944dbdbb09 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp
@@ -13,8 +13,6 @@ HTMLTrackElement::HTMLTrackElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLTrackElement::~HTMLTrackElement()
-{
-}
+HTMLTrackElement::~HTMLTrackElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp
index cee5b3b781..80c68a724f 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp
@@ -13,8 +13,6 @@ HTMLUListElement::HTMLUListElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLUListElement::~HTMLUListElement()
-{
-}
+HTMLUListElement::~HTMLUListElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp
index bcd04338b4..1274e0a9bf 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp
@@ -13,8 +13,6 @@ HTMLUnknownElement::HTMLUnknownElement(DOM::Document& document, DOM::QualifiedNa
{
}
-HTMLUnknownElement::~HTMLUnknownElement()
-{
-}
+HTMLUnknownElement::~HTMLUnknownElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
index cee1fcd47b..eb34e7c8c0 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp
@@ -13,8 +13,6 @@ HTMLVideoElement::HTMLVideoElement(DOM::Document& document, DOM::QualifiedName q
{
}
-HTMLVideoElement::~HTMLVideoElement()
-{
-}
+HTMLVideoElement::~HTMLVideoElement() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/History.cpp b/Userland/Libraries/LibWeb/HTML/History.cpp
index 8e68f281d2..379fddf37f 100644
--- a/Userland/Libraries/LibWeb/HTML/History.cpp
+++ b/Userland/Libraries/LibWeb/HTML/History.cpp
@@ -14,9 +14,7 @@ History::History(DOM::Document& document)
{
}
-History::~History()
-{
-}
+History::~History() = default;
// https://html.spec.whatwg.org/multipage/history.html#dom-history-pushstate
DOM::ExceptionOr<void> History::push_state(JS::Value data, String const&, String const& url)
diff --git a/Userland/Libraries/LibWeb/HTML/ImageData.cpp b/Userland/Libraries/LibWeb/HTML/ImageData.cpp
index bb8a007a22..87ed96899f 100644
--- a/Userland/Libraries/LibWeb/HTML/ImageData.cpp
+++ b/Userland/Libraries/LibWeb/HTML/ImageData.cpp
@@ -37,9 +37,7 @@ ImageData::ImageData(NonnullRefPtr<Gfx::Bitmap> bitmap, JS::Handle<JS::Uint8Clam
{
}
-ImageData::~ImageData()
-{
-}
+ImageData::~ImageData() = default;
unsigned ImageData::width() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp b/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp
index 1714d5905c..cb877324f9 100644
--- a/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp
+++ b/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp
@@ -22,8 +22,6 @@ MessageChannel::MessageChannel()
m_port1->entangle_with(*m_port2);
}
-MessageChannel::~MessageChannel()
-{
-}
+MessageChannel::~MessageChannel() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp
index 39b55e3d2a..59d013601e 100644
--- a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp
+++ b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp
@@ -19,9 +19,7 @@ MessagePort::MessagePort()
{
}
-MessagePort::~MessagePort()
-{
-}
+MessagePort::~MessagePort() = default;
void MessagePort::disentangle()
{
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.cpp b/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.cpp
index 06f4b5d2a2..4261117e60 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.cpp
@@ -9,9 +9,7 @@
namespace Web::HTML {
-ListOfActiveFormattingElements::~ListOfActiveFormattingElements()
-{
-}
+ListOfActiveFormattingElements::~ListOfActiveFormattingElements() = default;
void ListOfActiveFormattingElements::add(DOM::Element& element)
{
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.h b/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.h
index 3a8e06593b..15fc533d73 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.h
+++ b/Userland/Libraries/LibWeb/HTML/Parser/ListOfActiveFormattingElements.h
@@ -14,7 +14,7 @@ namespace Web::HTML {
class ListOfActiveFormattingElements {
public:
- ListOfActiveFormattingElements() { }
+ ListOfActiveFormattingElements() = default;
~ListOfActiveFormattingElements();
struct Entry {
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.cpp b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.cpp
index 97fd3d6463..35027eb81f 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.cpp
@@ -12,9 +12,7 @@ namespace Web::HTML {
static Vector<FlyString> s_base_list { "applet", "caption", "html", "table", "td", "th", "marquee", "object", "template" };
-StackOfOpenElements::~StackOfOpenElements()
-{
-}
+StackOfOpenElements::~StackOfOpenElements() = default;
bool StackOfOpenElements::has_in_scope_impl(const FlyString& tag_name, const Vector<FlyString>& list) const
{
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
index 324a89025a..4c456f1b58 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
+++ b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
@@ -20,7 +20,7 @@ public:
// and the bottommost node of the stack is the most recently added node in the stack
// (notwithstanding when the stack is manipulated in a random access fashion as part of the handling for misnested tags).
- StackOfOpenElements() { }
+ StackOfOpenElements() = default;
~StackOfOpenElements();
DOM::Element& first() { return m_elements.first(); }
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp
index a4647674d8..7ce620f371 100644
--- a/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp
@@ -152,8 +152,6 @@ ClassicScript::ClassicScript(AK::URL base_url, String filename, EnvironmentSetti
{
}
-ClassicScript::~ClassicScript()
-{
-}
+ClassicScript::~ClassicScript() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Script.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/Script.cpp
index 8fcc9ddea7..ac89905577 100644
--- a/Userland/Libraries/LibWeb/HTML/Scripting/Script.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Scripting/Script.cpp
@@ -14,8 +14,6 @@ Script::Script(AK::URL base_url, String filename)
{
}
-Script::~Script()
-{
-}
+Script::~Script() = default;
}
diff --git a/Userland/Libraries/LibWeb/HTML/Storage.cpp b/Userland/Libraries/LibWeb/HTML/Storage.cpp
index f17b05bfb8..7a486e912d 100644
--- a/Userland/Libraries/LibWeb/HTML/Storage.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Storage.cpp
@@ -14,13 +14,9 @@ NonnullRefPtr<Storage> Storage::create()
return adopt_ref(*new Storage);
}
-Storage::Storage()
-{
-}
+Storage::Storage() = default;
-Storage::~Storage()
-{
-}
+Storage::~Storage() = default;
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-length
size_t Storage::length() const
diff --git a/Userland/Libraries/LibWeb/HTML/TextMetrics.h b/Userland/Libraries/LibWeb/HTML/TextMetrics.h
index 8b3a064d23..13943b4ead 100644
--- a/Userland/Libraries/LibWeb/HTML/TextMetrics.h
+++ b/Userland/Libraries/LibWeb/HTML/TextMetrics.h
@@ -46,7 +46,7 @@ public:
void set_ideographic_baseline(double baseline) { m_ideographic_baseline = baseline; }
private:
- explicit TextMetrics() { }
+ explicit TextMetrics() = default;
double m_width { 0 };
double m_actual_bounding_box_left { 0 };
diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp
index 9db4f3dc7f..df7d465dcf 100644
--- a/Userland/Libraries/LibWeb/HTML/Window.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Window.cpp
@@ -121,9 +121,7 @@ Window::Window(DOM::Document& document)
{
}
-Window::~Window()
-{
-}
+Window::~Window() = default;
void Window::set_wrapper(Badge<Bindings::WindowObject>, Bindings::WindowObject& wrapper)
{
diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
index 312e589127..20c671fdb2 100644
--- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
+++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp
@@ -25,7 +25,7 @@ WorkerGlobalScope::WorkerGlobalScope()
{
}
-WorkerGlobalScope::~WorkerGlobalScope() { }
+WorkerGlobalScope::~WorkerGlobalScope() = default;
// https://html.spec.whatwg.org/multipage/workers.html#importing-scripts-and-libraries
DOM::ExceptionOr<void> WorkerGlobalScope::import_scripts(Vector<String> urls)
diff --git a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp
index 6fac7a0042..468e28bddf 100644
--- a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp
+++ b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp
@@ -21,9 +21,7 @@ Performance::Performance(HTML::Window& window)
m_timer.start();
}
-Performance::~Performance()
-{
-}
+Performance::~Performance() = default;
double Performance::time_origin() const
{
diff --git a/Userland/Libraries/LibWeb/InProcessWebView.cpp b/Userland/Libraries/LibWeb/InProcessWebView.cpp
index 2ab239bdea..688b0994cb 100644
--- a/Userland/Libraries/LibWeb/InProcessWebView.cpp
+++ b/Userland/Libraries/LibWeb/InProcessWebView.cpp
@@ -37,9 +37,7 @@ InProcessWebView::InProcessWebView()
set_focus_policy(GUI::FocusPolicy::StrongFocus);
}
-InProcessWebView::~InProcessWebView()
-{
-}
+InProcessWebView::~InProcessWebView() = default;
void InProcessWebView::select_all()
{
diff --git a/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp b/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
index 69284b8dcc..d958c55d3b 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
@@ -19,9 +19,7 @@ BlockContainer::BlockContainer(DOM::Document& document, DOM::Node* node, CSS::Co
{
}
-BlockContainer::~BlockContainer()
-{
-}
+BlockContainer::~BlockContainer() = default;
bool BlockContainer::is_scrollable() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/BreakNode.cpp b/Userland/Libraries/LibWeb/Layout/BreakNode.cpp
index 4fa194bf2a..f5661ecf84 100644
--- a/Userland/Libraries/LibWeb/Layout/BreakNode.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BreakNode.cpp
@@ -16,8 +16,6 @@ BreakNode::BreakNode(DOM::Document& document, HTML::HTMLBRElement& element, Nonn
set_inline(true);
}
-BreakNode::~BreakNode()
-{
-}
+BreakNode::~BreakNode() = default;
}
diff --git a/Userland/Libraries/LibWeb/Layout/ButtonBox.cpp b/Userland/Libraries/LibWeb/Layout/ButtonBox.cpp
index d297433a89..2620845c4e 100644
--- a/Userland/Libraries/LibWeb/Layout/ButtonBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/ButtonBox.cpp
@@ -16,9 +16,7 @@ ButtonBox::ButtonBox(DOM::Document& document, HTML::HTMLInputElement& element, N
{
}
-ButtonBox::~ButtonBox()
-{
-}
+ButtonBox::~ButtonBox() = default;
void ButtonBox::prepare_for_replaced_layout()
{
diff --git a/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp b/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp
index 44a6784614..9c4b44e18f 100644
--- a/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp
@@ -15,9 +15,7 @@ CanvasBox::CanvasBox(DOM::Document& document, HTML::HTMLCanvasElement& element,
{
}
-CanvasBox::~CanvasBox()
-{
-}
+CanvasBox::~CanvasBox() = default;
void CanvasBox::prepare_for_replaced_layout()
{
diff --git a/Userland/Libraries/LibWeb/Layout/CheckBox.cpp b/Userland/Libraries/LibWeb/Layout/CheckBox.cpp
index 03a81aea7d..8b226fee5d 100644
--- a/Userland/Libraries/LibWeb/Layout/CheckBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/CheckBox.cpp
@@ -20,9 +20,7 @@ CheckBox::CheckBox(DOM::Document& document, HTML::HTMLInputElement& element, Non
set_intrinsic_height(13);
}
-CheckBox::~CheckBox()
-{
-}
+CheckBox::~CheckBox() = default;
RefPtr<Painting::Paintable> CheckBox::create_paintable() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index 2372575116..1e42e107d9 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -39,9 +39,7 @@ FlexFormattingContext::FlexFormattingContext(FormattingState& state, Box const&
{
}
-FlexFormattingContext::~FlexFormattingContext()
-{
-}
+FlexFormattingContext::~FlexFormattingContext() = default;
void FlexFormattingContext::run(Box const& run_box, LayoutMode)
{
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
index 767d93d876..82e2aa12fe 100644
--- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
@@ -27,9 +27,7 @@ FormattingContext::FormattingContext(Type type, FormattingState& state, Box cons
{
}
-FormattingContext::~FormattingContext()
-{
-}
+FormattingContext::~FormattingContext() = default;
bool FormattingContext::creates_block_formatting_context(const Box& box)
{
diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
index 296c84bf9f..73d47dc022 100644
--- a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
@@ -17,9 +17,7 @@ FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr
{
}
-FrameBox::~FrameBox()
-{
-}
+FrameBox::~FrameBox() = default;
void FrameBox::prepare_for_replaced_layout()
{
diff --git a/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp b/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
index f68b535d99..724352db54 100644
--- a/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
@@ -16,9 +16,7 @@ InitialContainingBlock::InitialContainingBlock(DOM::Document& document, NonnullR
{
}
-InitialContainingBlock::~InitialContainingBlock()
-{
-}
+InitialContainingBlock::~InitialContainingBlock() = default;
void InitialContainingBlock::build_stacking_context_tree()
{
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
index d5fb0b1cbc..643cb45a75 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
@@ -24,9 +24,7 @@ InlineFormattingContext::InlineFormattingContext(FormattingState& state, BlockCo
{
}
-InlineFormattingContext::~InlineFormattingContext()
-{
-}
+InlineFormattingContext::~InlineFormattingContext() = default;
BlockFormattingContext& InlineFormattingContext::parent()
{
diff --git a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp
index 2f205099d4..2b87c97233 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp
@@ -20,9 +20,7 @@ InlineNode::InlineNode(DOM::Document& document, DOM::Element* element, NonnullRe
set_inline(true);
}
-InlineNode::~InlineNode()
-{
-}
+InlineNode::~InlineNode() = default;
RefPtr<Painting::Paintable> InlineNode::create_paintable() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/Label.cpp b/Userland/Libraries/LibWeb/Layout/Label.cpp
index 035a6f8d69..ece03ad1a1 100644
--- a/Userland/Libraries/LibWeb/Layout/Label.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Label.cpp
@@ -20,9 +20,7 @@ Label::Label(DOM::Document& document, HTML::HTMLLabelElement* element, NonnullRe
{
}
-Label::~Label()
-{
-}
+Label::~Label() = default;
void Label::handle_mousedown_on_label(Badge<Painting::TextPaintable>, Gfx::IntPoint const&, unsigned button)
{
diff --git a/Userland/Libraries/LibWeb/Layout/LayoutPosition.h b/Userland/Libraries/LibWeb/Layout/LayoutPosition.h
index 97ada625d3..7f5d221139 100644
--- a/Userland/Libraries/LibWeb/Layout/LayoutPosition.h
+++ b/Userland/Libraries/LibWeb/Layout/LayoutPosition.h
@@ -23,7 +23,7 @@ struct LayoutPosition {
class LayoutRange {
public:
- LayoutRange() { }
+ LayoutRange() = default;
LayoutRange(const LayoutPosition& start, const LayoutPosition& end)
: m_start(start)
, m_end(end)
diff --git a/Userland/Libraries/LibWeb/Layout/LineBox.h b/Userland/Libraries/LibWeb/Layout/LineBox.h
index 53cf79bf00..2f92e8e514 100644
--- a/Userland/Libraries/LibWeb/Layout/LineBox.h
+++ b/Userland/Libraries/LibWeb/Layout/LineBox.h
@@ -13,7 +13,7 @@ namespace Web::Layout {
class LineBox {
public:
- LineBox() { }
+ LineBox() = default;
float width() const { return m_width; }
float bottom() const { return m_bottom; }
diff --git a/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp b/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp
index cbad46707b..4ac9ccb430 100644
--- a/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp
@@ -15,9 +15,7 @@ ListItemBox::ListItemBox(DOM::Document& document, DOM::Element* element, Nonnull
{
}
-ListItemBox::~ListItemBox()
-{
-}
+ListItemBox::~ListItemBox() = default;
void ListItemBox::set_marker(RefPtr<ListItemMarkerBox> marker)
{
diff --git a/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.cpp b/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.cpp
index 4b4d7bbeb4..35fb914cfd 100644
--- a/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/ListItemMarkerBox.cpp
@@ -49,9 +49,7 @@ ListItemMarkerBox::ListItemMarkerBox(DOM::Document& document, CSS::ListStyleType
}
}
-ListItemMarkerBox::~ListItemMarkerBox()
-{
-}
+ListItemMarkerBox::~ListItemMarkerBox() = default;
Gfx::Bitmap const* ListItemMarkerBox::list_style_image_bitmap() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h
index 4ebdbf027e..135e7b9434 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.h
+++ b/Userland/Libraries/LibWeb/Layout/Node.h
@@ -145,7 +145,7 @@ private:
class NodeWithStyle : public Node {
public:
- virtual ~NodeWithStyle() override { }
+ virtual ~NodeWithStyle() override = default;
const CSS::ImmutableComputedValues& computed_values() const { return static_cast<const CSS::ImmutableComputedValues&>(m_computed_values); }
diff --git a/Userland/Libraries/LibWeb/Layout/Progress.cpp b/Userland/Libraries/LibWeb/Layout/Progress.cpp
index f8661793a3..d081e14897 100644
--- a/Userland/Libraries/LibWeb/Layout/Progress.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Progress.cpp
@@ -15,9 +15,7 @@ Progress::Progress(DOM::Document& document, HTML::HTMLProgressElement& element,
set_intrinsic_height(12);
}
-Progress::~Progress()
-{
-}
+Progress::~Progress() = default;
RefPtr<Painting::Paintable> Progress::create_paintable() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp
index 9171364cab..884ab1f4be 100644
--- a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp
+++ b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp
@@ -18,9 +18,7 @@ RadioButton::RadioButton(DOM::Document& document, HTML::HTMLInputElement& elemen
set_intrinsic_height(12);
}
-RadioButton::~RadioButton()
-{
-}
+RadioButton::~RadioButton() = default;
RefPtr<Painting::Paintable> RadioButton::create_paintable() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp b/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
index 098e06db8b..cafd3aa7f5 100644
--- a/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
@@ -18,8 +18,6 @@ ReplacedBox::ReplacedBox(DOM::Document& document, DOM::Element& element, Nonnull
set_inline(true);
}
-ReplacedBox::~ReplacedBox()
-{
-}
+ReplacedBox::~ReplacedBox() = default;
}
diff --git a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
index baa673bc98..8bf7ac3509 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
@@ -18,9 +18,7 @@ SVGFormattingContext::SVGFormattingContext(FormattingState& state, Box const& bo
{
}
-SVGFormattingContext::~SVGFormattingContext()
-{
-}
+SVGFormattingContext::~SVGFormattingContext() = default;
void SVGFormattingContext::run(Box const& box, LayoutMode)
{
diff --git a/Userland/Libraries/LibWeb/Layout/TableBox.cpp b/Userland/Libraries/LibWeb/Layout/TableBox.cpp
index 179ac6b233..a0a3652843 100644
--- a/Userland/Libraries/LibWeb/Layout/TableBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableBox.cpp
@@ -19,8 +19,6 @@ TableBox::TableBox(DOM::Document& document, DOM::Element* element, CSS::Computed
{
}
-TableBox::~TableBox()
-{
-}
+TableBox::~TableBox() = default;
}
diff --git a/Userland/Libraries/LibWeb/Layout/TableCellBox.cpp b/Userland/Libraries/LibWeb/Layout/TableCellBox.cpp
index c8289c8f18..ba3e203ae5 100644
--- a/Userland/Libraries/LibWeb/Layout/TableCellBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableCellBox.cpp
@@ -20,9 +20,7 @@ TableCellBox::TableCellBox(DOM::Document& document, DOM::Element* element, CSS::
{
}
-TableCellBox::~TableCellBox()
-{
-}
+TableCellBox::~TableCellBox() = default;
size_t TableCellBox::colspan() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
index cc82f66fe8..d32ea65782 100644
--- a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
@@ -21,9 +21,7 @@ TableFormattingContext::TableFormattingContext(FormattingState& state, BlockCont
{
}
-TableFormattingContext::~TableFormattingContext()
-{
-}
+TableFormattingContext::~TableFormattingContext() = default;
void TableFormattingContext::run(Box const& box, LayoutMode)
{
diff --git a/Userland/Libraries/LibWeb/Layout/TableRowBox.cpp b/Userland/Libraries/LibWeb/Layout/TableRowBox.cpp
index 310affae2b..20a207761e 100644
--- a/Userland/Libraries/LibWeb/Layout/TableRowBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableRowBox.cpp
@@ -19,8 +19,6 @@ TableRowBox::TableRowBox(DOM::Document& document, DOM::Element* element, CSS::Co
{
}
-TableRowBox::~TableRowBox()
-{
-}
+TableRowBox::~TableRowBox() = default;
}
diff --git a/Userland/Libraries/LibWeb/Layout/TableRowGroupBox.cpp b/Userland/Libraries/LibWeb/Layout/TableRowGroupBox.cpp
index 990e419341..2a5c45d036 100644
--- a/Userland/Libraries/LibWeb/Layout/TableRowGroupBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableRowGroupBox.cpp
@@ -16,9 +16,7 @@ TableRowGroupBox::TableRowGroupBox(DOM::Document& document, DOM::Element* elemen
{
}
-TableRowGroupBox::~TableRowGroupBox()
-{
-}
+TableRowGroupBox::~TableRowGroupBox() = default;
size_t TableRowGroupBox::column_count() const
{
diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.cpp b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
index d8fa4b565d..27c7653f9c 100644
--- a/Userland/Libraries/LibWeb/Layout/TextNode.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
@@ -21,9 +21,7 @@ TextNode::TextNode(DOM::Document& document, DOM::Text& text)
set_inline(true);
}
-TextNode::~TextNode()
-{
-}
+TextNode::~TextNode() = default;
static bool is_all_whitespace(StringView string)
{
diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp
index 7ab1be5f19..be340dd197 100644
--- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp
@@ -24,9 +24,7 @@
namespace Web::Layout {
-TreeBuilder::TreeBuilder()
-{
-}
+TreeBuilder::TreeBuilder() = default;
// The insertion_parent_for_*() functions maintain the invariant that block-level boxes must have either
// only block-level children or only inline-level children.
diff --git a/Userland/Libraries/LibWeb/Loader/ContentFilter.cpp b/Userland/Libraries/LibWeb/Loader/ContentFilter.cpp
index b725d859de..8c3941d4e9 100644
--- a/Userland/Libraries/LibWeb/Loader/ContentFilter.cpp
+++ b/Userland/Libraries/LibWeb/Loader/ContentFilter.cpp
@@ -15,13 +15,9 @@ ContentFilter& ContentFilter::the()
return filter;
}
-ContentFilter::ContentFilter()
-{
-}
+ContentFilter::ContentFilter() = default;
-ContentFilter::~ContentFilter()
-{
-}
+ContentFilter::~ContentFilter() = default;
bool ContentFilter::is_filtered(const AK::URL& url) const
{
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
index 346b18c62c..a977ebca0c 100644
--- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
@@ -36,9 +36,7 @@ FrameLoader::FrameLoader(HTML::BrowsingContext& browsing_context)
}
}
-FrameLoader::~FrameLoader()
-{
-}
+FrameLoader::~FrameLoader() = default;
static bool build_markdown_document(DOM::Document& document, const ByteBuffer& data)
{
diff --git a/Userland/Libraries/LibWeb/Loader/ImageResource.cpp b/Userland/Libraries/LibWeb/Loader/ImageResource.cpp
index b425c98847..ce9a37d3d5 100644
--- a/Userland/Libraries/LibWeb/Loader/ImageResource.cpp
+++ b/Userland/Libraries/LibWeb/Loader/ImageResource.cpp
@@ -15,9 +15,7 @@ ImageResource::ImageResource(const LoadRequest& request)
{
}
-ImageResource::~ImageResource()
-{
-}
+ImageResource::~ImageResource() = default;
int ImageResource::frame_duration(size_t frame_index) const
{
@@ -97,8 +95,6 @@ void ImageResource::update_volatility()
m_has_attempted_decode = false;
}
-ImageResourceClient::~ImageResourceClient()
-{
-}
+ImageResourceClient::~ImageResourceClient() = default;
}
diff --git a/Userland/Libraries/LibWeb/Loader/Resource.cpp b/Userland/Libraries/LibWeb/Loader/Resource.cpp
index 64f6e72cce..dbef11c1cb 100644
--- a/Userland/Libraries/LibWeb/Loader/Resource.cpp
+++ b/Userland/Libraries/LibWeb/Loader/Resource.cpp
@@ -25,9 +25,7 @@ Resource::Resource(Type type, const LoadRequest& request)
{
}
-Resource::~Resource()
-{
-}
+Resource::~Resource() = default;
void Resource::for_each_client(Function<void(ResourceClient&)> callback)
{
diff --git a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
index f52c41204e..f19ed86551 100644
--- a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
+++ b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
@@ -35,9 +35,7 @@ MimeType::MimeType(String type, String subtype)
VERIFY(contains_only_http_quoted_string_token_code_points(subtype));
}
-MimeType::~MimeType()
-{
-}
+MimeType::~MimeType() = default;
static bool contains_only_http_token_code_points(StringView string)
{
diff --git a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp
index 1f39cb2bb5..f42280d449 100644
--- a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp
+++ b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp
@@ -13,8 +13,6 @@ PerformanceTiming::PerformanceTiming(HTML::Window& window)
{
}
-PerformanceTiming::~PerformanceTiming()
-{
-}
+PerformanceTiming::~PerformanceTiming() = default;
}
diff --git a/Userland/Libraries/LibWeb/Origin.h b/Userland/Libraries/LibWeb/Origin.h
index f22c888669..e89be3f9a2 100644
--- a/Userland/Libraries/LibWeb/Origin.h
+++ b/Userland/Libraries/LibWeb/Origin.h
@@ -13,7 +13,7 @@ namespace Web {
class Origin {
public:
- Origin() { }
+ Origin() = default;
Origin(const String& protocol, const String& host, u16 port)
: m_protocol(protocol)
, m_host(host)
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
index 402b5aca91..1b838b3691 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
@@ -30,9 +30,7 @@ OutOfProcessWebView::OutOfProcessWebView()
create_client();
}
-OutOfProcessWebView::~OutOfProcessWebView()
-{
-}
+OutOfProcessWebView::~OutOfProcessWebView() = default;
void OutOfProcessWebView::handle_web_content_process_crash()
{
diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp
index c92bfecf1d..bb08639407 100644
--- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp
+++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp
@@ -95,9 +95,7 @@ EventHandler::EventHandler(Badge<HTML::BrowsingContext>, HTML::BrowsingContext&
{
}
-EventHandler::~EventHandler()
-{
-}
+EventHandler::~EventHandler() = default;
const Layout::InitialContainingBlock* EventHandler::layout_root() const
{
diff --git a/Userland/Libraries/LibWeb/Page/Page.cpp b/Userland/Libraries/LibWeb/Page/Page.cpp
index 64fd74229b..70e8f90c6c 100644
--- a/Userland/Libraries/LibWeb/Page/Page.cpp
+++ b/Userland/Libraries/LibWeb/Page/Page.cpp
@@ -15,9 +15,7 @@ Page::Page(PageClient& client)
m_top_level_browsing_context = HTML::BrowsingContext::create(*this);
}
-Page::~Page()
-{
-}
+Page::~Page() = default;
HTML::BrowsingContext& Page::focused_context()
{
diff --git a/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp b/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp
index cc89aaf5ad..53996f7756 100644
--- a/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp
+++ b/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp
@@ -19,8 +19,6 @@ IdleDeadline::IdleDeadline(double time_remaining, bool did_timeout)
{
}
-IdleDeadline::~IdleDeadline()
-{
-}
+IdleDeadline::~IdleDeadline() = default;
}
diff --git a/Userland/Libraries/LibWeb/StylePropertiesModel.cpp b/Userland/Libraries/LibWeb/StylePropertiesModel.cpp
index fa69248bda..b66d24d79b 100644
--- a/Userland/Libraries/LibWeb/StylePropertiesModel.cpp
+++ b/Userland/Libraries/LibWeb/StylePropertiesModel.cpp
@@ -23,9 +23,7 @@ StylePropertiesModel::StylePropertiesModel(JsonObject properties)
quick_sort(m_values, [](auto& a, auto& b) { return a.name < b.name; });
}
-StylePropertiesModel::~StylePropertiesModel()
-{
-}
+StylePropertiesModel::~StylePropertiesModel() = default;
int StylePropertiesModel::row_count(GUI::ModelIndex const&) const
{
diff --git a/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp
index 3397fc7b60..4a25d9f79b 100644
--- a/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp
+++ b/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp
@@ -14,8 +14,6 @@ FocusEvent::FocusEvent(FlyString const& event_name, FocusEventInit const& event_
set_related_target(const_cast<DOM::EventTarget*>(event_init.related_target.ptr()));
}
-FocusEvent::~FocusEvent()
-{
-}
+FocusEvent::~FocusEvent() = default;
}
diff --git a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
index 730c304847..8355e9811e 100644
--- a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
+++ b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
@@ -20,9 +20,7 @@ MouseEvent::MouseEvent(const FlyString& event_name, double offset_x, double offs
set_event_characteristics();
}
-MouseEvent::~MouseEvent()
-{
-}
+MouseEvent::~MouseEvent() = default;
void MouseEvent::set_event_characteristics()
{
diff --git a/Userland/Libraries/LibWeb/UIEvents/UIEvent.h b/Userland/Libraries/LibWeb/UIEvents/UIEvent.h
index 920ec3a7e3..4da9382559 100644
--- a/Userland/Libraries/LibWeb/UIEvents/UIEvent.h
+++ b/Userland/Libraries/LibWeb/UIEvents/UIEvent.h
@@ -31,7 +31,7 @@ public:
return adopt_ref(*new UIEvent(event_name, event_init));
}
- virtual ~UIEvent() override { }
+ virtual ~UIEvent() override = default;
HTML::Window const* view() const { return m_view; }
int detail() const { return m_detail; }
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp
index 9511079af4..6c2517b363 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp
@@ -19,9 +19,7 @@ WebAssemblyInstanceConstructor::WebAssemblyInstanceConstructor(JS::GlobalObject&
{
}
-WebAssemblyInstanceConstructor::~WebAssemblyInstanceConstructor()
-{
-}
+WebAssemblyInstanceConstructor::~WebAssemblyInstanceConstructor() = default;
JS::ThrowCompletionOr<JS::Value> WebAssemblyInstanceConstructor::call()
{
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
index 5bd968230e..76330a251b 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
@@ -17,9 +17,7 @@ WebAssemblyMemoryConstructor::WebAssemblyMemoryConstructor(JS::GlobalObject& glo
{
}
-WebAssemblyMemoryConstructor::~WebAssemblyMemoryConstructor()
-{
-}
+WebAssemblyMemoryConstructor::~WebAssemblyMemoryConstructor() = default;
JS::ThrowCompletionOr<JS::Value> WebAssemblyMemoryConstructor::call()
{
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp
index 62703f5e3e..1df0df1c6f 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp
@@ -19,9 +19,7 @@ WebAssemblyModuleConstructor::WebAssemblyModuleConstructor(JS::GlobalObject& glo
{
}
-WebAssemblyModuleConstructor::~WebAssemblyModuleConstructor()
-{
-}
+WebAssemblyModuleConstructor::~WebAssemblyModuleConstructor() = default;
JS::ThrowCompletionOr<JS::Value> WebAssemblyModuleConstructor::call()
{
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp
index 9a56853374..efc366d4fb 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp
@@ -19,9 +19,7 @@ WebAssemblyTableConstructor::WebAssemblyTableConstructor(JS::GlobalObject& globa
{
}
-WebAssemblyTableConstructor::~WebAssemblyTableConstructor()
-{
-}
+WebAssemblyTableConstructor::~WebAssemblyTableConstructor() = default;
JS::ThrowCompletionOr<JS::Value> WebAssemblyTableConstructor::call()
{
diff --git a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp
index 5e048f6bcc..f4707d0411 100644
--- a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp
+++ b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp
@@ -100,9 +100,7 @@ WebSocket::WebSocket(HTML::Window& window, AK::URL& url)
};
}
-WebSocket::~WebSocket()
-{
-}
+WebSocket::~WebSocket() = default;
// https://websockets.spec.whatwg.org/#dom-websocket-readystate
WebSocket::ReadyState WebSocket::ready_state() const
diff --git a/Userland/Libraries/LibWeb/XHR/ProgressEvent.h b/Userland/Libraries/LibWeb/XHR/ProgressEvent.h
index a969864e01..cad8d1f139 100644
--- a/Userland/Libraries/LibWeb/XHR/ProgressEvent.h
+++ b/Userland/Libraries/LibWeb/XHR/ProgressEvent.h
@@ -32,7 +32,7 @@ public:
return ProgressEvent::create(event_name, event_init);
}
- virtual ~ProgressEvent() override { }
+ virtual ~ProgressEvent() override = default;
bool length_computable() const { return m_length_computable; }
u32 loaded() const { return m_loaded; }
diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp
index 1464752aea..b1da851764 100644
--- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp
+++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp
@@ -42,9 +42,7 @@ XMLHttpRequest::XMLHttpRequest(HTML::Window& window)
{
}
-XMLHttpRequest::~XMLHttpRequest()
-{
-}
+XMLHttpRequest::~XMLHttpRequest() = default;
void XMLHttpRequest::set_ready_state(ReadyState ready_state)
{