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:
parent
becd70eccb
commit
725d7c3699
4 changed files with 37 additions and 1 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue