/* * Copyright (c) 2022, Sam Atkins * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::CSS { CSSFontFaceRule* CSSFontFaceRule::create(HTML::Window& window_object, FontFace&& font_face) { return window_object.heap().allocate(window_object.realm(), window_object, move(font_face)); } CSSFontFaceRule::CSSFontFaceRule(HTML::Window& window_object, FontFace&& font_face) : CSSRule(window_object) , m_font_face(move(font_face)) { set_prototype(&window_object.cached_web_prototype("CSSFontFaceRule")); } CSSStyleDeclaration* CSSFontFaceRule::style() { // FIXME: Return a CSSStyleDeclaration subclass that directs changes to the FontFace. return nullptr; } // https://www.w3.org/TR/cssom/#ref-for-cssfontfacerule String CSSFontFaceRule::serialized() const { // FIXME: Implement this! return "@font-face { /* FIXME: Implement CSSFontFaceRule::serialized()! */ }"; } }