mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb/CSS: Move "serialize a CSS declaration" to Serialize.{h,cpp}
We need this in other places, so make it available for reuse. Also, update step 4 which now only appends `value` if it contains non-whitespace.
This commit is contained in:
parent
a2c89f585f
commit
2b67cb5f98
Notes:
github-actions[bot]
2025-03-27 11:54:13 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2b67cb5f98
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4106
3 changed files with 33 additions and 51 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Font/UnicodeRange.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -44,4 +45,6 @@ void serialize_a_comma_separated_list(StringBuilder& builder, Vector<T> const& i
|
|||
}
|
||||
}
|
||||
|
||||
String serialize_a_css_declaration(StringView property, StringView value, Important = Important::No);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue