mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-20 02:40:27 +00:00
These are the same code, so we may as well move them up the chain. This becomes useful in a later commit, where it will be used to rewrite inline-flow to inline-block for layout of shadow DOM.
33 lines
737 B
C++
33 lines
737 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;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|