mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Remove unused VideoBox preferred width/height methods
These were copied from some other paintable, but were never used for video.
This commit is contained in:
parent
338fa8261e
commit
c31e8cad1e
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/c31e8cad1e Pull-request: https://github.com/SerenityOS/serenity/pull/20301 Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 0 additions and 13 deletions
|
@ -35,16 +35,6 @@ HTML::HTMLVideoElement const& VideoBox::dom_node() const
|
|||
return static_cast<HTML::HTMLVideoElement const&>(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<float>(dom_node().video_width());
|
||||
|
|
|
@ -33,9 +33,6 @@ private:
|
|||
|
||||
// ^JS::Cell
|
||||
virtual void finalize() override;
|
||||
|
||||
int preferred_width() const;
|
||||
int preferred_height() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue