LibWeb: Propagate more StringBuilder errors in from StyleValues

This commit is contained in:
MacDue 2023-01-25 19:12:00 +01:00 committed by Tim Flynn
parent 95aacd4f78
commit b0846ec78a
Notes: sideshowbarker 2024-07-17 06:45:52 +09:00

View file

@ -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();
}