LibWeb: Add MathML Element presentational hints

This commit is contained in:
Lorenz A 2025-09-20 22:54:45 +02:00 committed by Jelle Raaijmakers
parent f1571c4217
commit 96b34ea744
Notes: github-actions[bot] 2025-10-21 23:48:01 +00:00
13 changed files with 380 additions and 2 deletions

View file

@ -0,0 +1,27 @@
/*
* 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 MathMLMiElement final : public MathMLElement {
WEB_PLATFORM_OBJECT(MathMLMiElement, MathMLElement);
GC_DECLARE_ALLOCATOR(MathMLMiElement);
public:
virtual ~MathMLMiElement() override = default;
private:
MathMLMiElement(DOM::Document&, DOM::QualifiedName);
virtual bool is_presentational_hint(FlyString const&) const override;
virtual void apply_presentational_hints(GC::Ref<CSS::CascadedProperties>) const override;
};
}