ladybird/Libraries/LibWeb/Painting/AudioPaintable.h
Aliaksandr Kalenik d3f40e9a72 LibWeb: Delete AudioPaintable::layout_box()
No need for this method when we could reach into DOM node directly from
Paintable.
2025-10-10 09:03:39 +02:00

27 lines
595 B
C++

/*
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Forward.h>
#include <LibWeb/Painting/MediaPaintable.h>
namespace Web::Painting {
class AudioPaintable final : public MediaPaintable {
GC_CELL(AudioPaintable, MediaPaintable);
GC_DECLARE_ALLOCATOR(AudioPaintable);
public:
static GC::Ref<AudioPaintable> create(Layout::AudioBox const&);
virtual void paint(DisplayListRecordingContext&, PaintPhase) const override;
private:
explicit AudioPaintable(Layout::AudioBox const&);
};
}