mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 02:52:52 +00:00
LibWeb/CSS: Use initial values for @font-face
descriptors
This commit is contained in:
parent
d2c58e9376
commit
775efd01e2
Notes:
github-actions[bot]
2025-04-07 09:02:19 +00:00
Author: https://github.com/AtkinsSJ
Commit: 775efd01e2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4224
3 changed files with 23 additions and 16 deletions
|
@ -263,6 +263,14 @@ RefPtr<CSSStyleValue const> CSSFontFaceDescriptors::descriptor(DescriptorID desc
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<CSSStyleValue const> CSSFontFaceDescriptors::descriptor_or_initial_value(DescriptorID descriptor_id) const
|
||||
{
|
||||
if (auto value = descriptor(descriptor_id))
|
||||
return value.release_nonnull();
|
||||
|
||||
return descriptor_initial_value(AtRuleID::FontFace, descriptor_id);
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> CSSFontFaceDescriptors::set_ascent_override(StringView value)
|
||||
{
|
||||
return set_property("ascent-override"sv, value, ""sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue