1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Implement HTMLVideoElement's video{Width,Height} attributes

This commit is contained in:
Timothy Flynn 2023-04-04 16:57:56 -04:00 committed by Linus Groh
parent becd70eccb
commit 725d7c3699
4 changed files with 37 additions and 1 deletions

View file

@ -16,10 +16,19 @@ class HTMLVideoElement final : public HTMLMediaElement {
public:
virtual ~HTMLVideoElement() override;
void set_video_width(u32 video_width) { m_video_width = video_width; }
u32 video_width() const;
void set_video_height(u32 video_height) { m_video_height = video_height; }
u32 video_height() const;
private:
HTMLVideoElement(DOM::Document&, DOM::QualifiedName);
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
u32 m_video_width { 0 };
u32 m_video_height { 0 };
};
}