mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Split FontStyleValue out of StyleValue.{h,cpp}
This commit is contained in:
parent
e24679f870
commit
87f920a299
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/AtkinsSJ
Commit: 87f920a299
Pull-request: https://github.com/SerenityOS/serenity/pull/18040
7 changed files with 77 additions and 43 deletions
19
Userland/Libraries/LibWeb/CSS/StyleValues/FontStyleValue.cpp
Normal file
19
Userland/Libraries/LibWeb/CSS/StyleValues/FontStyleValue.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "FontStyleValue.h"
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
ErrorOr<String> FontStyleValue::to_string() const
|
||||
{
|
||||
return String::formatted("{} {} {} / {} {}", TRY(m_properties.font_style->to_string()), TRY(m_properties.font_weight->to_string()), TRY(m_properties.font_size->to_string()), TRY(m_properties.line_height->to_string()), TRY(m_properties.font_families->to_string()));
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue