mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Add MathML Element presentational hints
This commit is contained in:
parent
f1571c4217
commit
96b34ea744
Notes:
github-actions[bot]
2025-10-21 23:48:01 +00:00
Author: https://github.com/lpas
Commit: 96b34ea744
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6252
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
13 changed files with 380 additions and 2 deletions
27
Libraries/LibWeb/MathML/MathMLMiElement.h
Normal file
27
Libraries/LibWeb/MathML/MathMLMiElement.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue