mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibWeb: Propagate more StringBuilder errors in from StyleValues
This commit is contained in:
parent
95aacd4f78
commit
b0846ec78a
Notes:
sideshowbarker
2024-07-17 06:45:52 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/b0846ec78a Pull-request: https://github.com/SerenityOS/serenity/pull/17167
1 changed files with 3 additions and 3 deletions
|
@ -1476,12 +1476,12 @@ ErrorOr<String> GridTemplateAreaStyleValue::to_string() const
|
|||
StringBuilder builder;
|
||||
for (size_t y = 0; y < m_grid_template_area.size(); ++y) {
|
||||
for (size_t x = 0; x < m_grid_template_area[y].size(); ++x) {
|
||||
builder.appendff("{}", m_grid_template_area[y][x]);
|
||||
TRY(builder.try_appendff("{}", m_grid_template_area[y][x]));
|
||||
if (x < m_grid_template_area[y].size() - 1)
|
||||
builder.append(" "sv);
|
||||
TRY(builder.try_append(" "sv));
|
||||
}
|
||||
if (y < m_grid_template_area.size() - 1)
|
||||
builder.append(", "sv);
|
||||
TRY(builder.try_append(", "sv));
|
||||
}
|
||||
return builder.to_string();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue