ladybird/Libraries/LibWeb/MathML/MathMLMspaceElement.h
Shannon Booth 4d64f21fa5 LibWeb: Give IDL exposed PlatformObjects an InterfaceName
By making use of the WEB_PLATFORM_OBJECT macro we can remove
the boilerplate of needing to add this override for every
serializable platform object so that we can check whether they
are exposed or not.
2026-02-14 20:22:40 +01:00

27 lines
682 B
C++

/*
* Copyright (c) 2025, Lorenz Ackermann, <me@lorenzackermann.xyz>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/MathML/MathMLElement.h>
namespace Web::MathML {
class MathMLMspaceElement final : public MathMLElement {
WEB_NON_IDL_PLATFORM_OBJECT(MathMLMspaceElement, MathMLElement);
GC_DECLARE_ALLOCATOR(MathMLMspaceElement);
public:
virtual ~MathMLMspaceElement() override = default;
private:
MathMLMspaceElement(DOM::Document&, DOM::QualifiedName);
virtual bool is_presentational_hint(FlyString const&) const override;
virtual void apply_presentational_hints(GC::Ref<CSS::CascadedProperties>) const override;
};
}