diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-13 00:20:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-13 09:36:20 +0200 |
commit | 1febee768d226fe9334a53b5b4a8302e81b567cf (patch) | |
tree | 7928b3b8315791e1d585a2c5855e296d404023ea /Libraries | |
parent | 0c14ee035cec4f5c151cda5d0342f81d50b6e400 (diff) | |
download | serenity-1febee768d226fe9334a53b5b4a8302e81b567cf.zip |
AK: Replace String::trim_spaces() with String::trim_whitespace()
As suggested by @awesomekling in a code review and (initially) ignored
by me :^)
Implementation is roughly based on LibJS's trim_string(), but with a fix
for trimming all-whitespace strings.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/CSS/StyleProperties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/CSS/StyleProperties.cpp b/Libraries/LibWeb/CSS/StyleProperties.cpp index 917d44bb31..552e58d699 100644 --- a/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -144,7 +144,7 @@ void StyleProperties::load_font() const // FIXME: Do this properly, with quote handling etc. for (auto& font_name : font_family.split(',')) { - font_name = font_name.trim_spaces(); + font_name = font_name.trim_whitespace(); if (font_name == "monospace") font_name = "Csilla"; |