CSSFontFaceRule.cpp 650 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/CSS/CSSFontFaceRule.h>
  7. namespace Web::CSS {
  8. CSSFontFaceRule::CSSFontFaceRule(FontFace&& font_face)
  9. : m_font_face(move(font_face))
  10. {
  11. }
  12. CSSStyleDeclaration* CSSFontFaceRule::style()
  13. {
  14. // FIXME: Return a CSSStyleDeclaration subclass that directs changes to the FontFace.
  15. return nullptr;
  16. }
  17. // https://www.w3.org/TR/cssom/#ref-for-cssfontfacerule
  18. String CSSFontFaceRule::serialized() const
  19. {
  20. // FIXME: Implement this!
  21. return "@font-face { /* FIXME: Implement CSSFontFaceRule::serialized()! */ }";
  22. }
  23. }