mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
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.
27 lines
682 B
C++
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;
|
|
};
|
|
|
|
}
|