mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
This is part of the rendering spec, but we had neglected to do this before. It causes one WPT check to fail, but other browsers get the same result on that check, so I guess we can call that a win. :^)
35 lines
819 B
C++
35 lines
819 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/HTML/HTMLMediaElement.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
class HTMLAudioElement final : public HTMLMediaElement {
|
|
WEB_PLATFORM_OBJECT(HTMLAudioElement, HTMLMediaElement);
|
|
GC_DECLARE_ALLOCATOR(HTMLAudioElement);
|
|
|
|
public:
|
|
virtual ~HTMLAudioElement() override;
|
|
|
|
virtual void adjust_computed_style(CSS::ComputedProperties& style) override;
|
|
|
|
Layout::AudioBox* layout_node();
|
|
Layout::AudioBox const* layout_node() const;
|
|
|
|
bool should_paint() const;
|
|
|
|
private:
|
|
HTMLAudioElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
virtual GC::Ptr<Layout::Node> create_layout_node(GC::Ref<CSS::ComputedProperties>) override;
|
|
};
|
|
|
|
}
|