1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb: Rename CSS::FontFace to CSS::ParsedFontFace

This implementation detail of CSSFontFaceRule is hogging the name of a
Web API from CSS Font Loading Module Level 3.
This commit is contained in:
Andrew Kaster 2024-05-07 09:18:37 -06:00 committed by Andreas Kling
parent 3f113e728f
commit 3a5eabc43b
Notes: sideshowbarker 2024-07-16 21:42:29 +09:00
8 changed files with 23 additions and 23 deletions

View file

@ -8,7 +8,7 @@
#pragma once
#include <LibWeb/CSS/CSSRule.h>
#include <LibWeb/CSS/FontFace.h>
#include <LibWeb/CSS/ParsedFontFace.h>
namespace Web::CSS {
@ -17,22 +17,22 @@ class CSSFontFaceRule final : public CSSRule {
JS_DECLARE_ALLOCATOR(CSSFontFaceRule);
public:
[[nodiscard]] static JS::NonnullGCPtr<CSSFontFaceRule> create(JS::Realm&, FontFace&&);
[[nodiscard]] static JS::NonnullGCPtr<CSSFontFaceRule> create(JS::Realm&, ParsedFontFace&&);
virtual ~CSSFontFaceRule() override = default;
virtual Type type() const override { return Type::FontFace; }
FontFace const& font_face() const { return m_font_face; }
ParsedFontFace const& font_face() const { return m_font_face; }
CSSStyleDeclaration* style();
private:
CSSFontFaceRule(JS::Realm&, FontFace&&);
CSSFontFaceRule(JS::Realm&, ParsedFontFace&&);
virtual void initialize(JS::Realm&) override;
virtual String serialized() const override;
FontFace m_font_face;
ParsedFontFace m_font_face;
};
template<>