From c31e8cad1e7d4f387d533dd34c0b3cd842f2146a Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 1 Aug 2023 10:19:50 -0400 Subject: [PATCH] LibWeb: Remove unused VideoBox preferred width/height methods These were copied from some other paintable, but were never used for video. --- Userland/Libraries/LibWeb/Layout/VideoBox.cpp | 10 ---------- Userland/Libraries/LibWeb/Layout/VideoBox.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/VideoBox.cpp b/Userland/Libraries/LibWeb/Layout/VideoBox.cpp index 6f768be9ce..48bc8673b0 100644 --- a/Userland/Libraries/LibWeb/Layout/VideoBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/VideoBox.cpp @@ -35,16 +35,6 @@ HTML::HTMLVideoElement const& VideoBox::dom_node() const return static_cast(ReplacedBox::dom_node()); } -int VideoBox::preferred_width() const -{ - return dom_node().attribute(HTML::AttributeNames::width).to_int().value_or(dom_node().video_width()); -} - -int VideoBox::preferred_height() const -{ - return dom_node().attribute(HTML::AttributeNames::height).to_int().value_or(dom_node().video_height()); -} - void VideoBox::prepare_for_replaced_layout() { auto width = static_cast(dom_node().video_width()); diff --git a/Userland/Libraries/LibWeb/Layout/VideoBox.h b/Userland/Libraries/LibWeb/Layout/VideoBox.h index 97545cfc50..0f8fdda409 100644 --- a/Userland/Libraries/LibWeb/Layout/VideoBox.h +++ b/Userland/Libraries/LibWeb/Layout/VideoBox.h @@ -33,9 +33,6 @@ private: // ^JS::Cell virtual void finalize() override; - - int preferred_width() const; - int preferred_height() const; }; }