mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Dump CSSDescriptors in a generic way
This replaces the need for bespoke (and verbose) dumping for each at-rule that has descriptors.
This commit is contained in:
parent
f0ce4f43a6
commit
fbdef98307
Notes:
github-actions[bot]
2025-05-08 15:22:39 +00:00
Author: https://github.com/AtkinsSJ
Commit: fbdef98307
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4654
3 changed files with 17 additions and 88 deletions
|
@ -24,7 +24,8 @@ public:
|
|||
|
||||
bool is_valid() const;
|
||||
ParsedFontFace font_face() const;
|
||||
CSSStyleDeclaration* style() { return m_style; }
|
||||
GC::Ref<CSSStyleDeclaration> style() { return m_style; }
|
||||
GC::Ref<CSSFontFaceDescriptors const> descriptors() const { return m_style; }
|
||||
|
||||
private:
|
||||
CSSFontFaceRule(JS::Realm&, GC::Ref<CSSFontFaceDescriptors>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue