LibWeb: Mark absolute_length_to_px() methods as [[nodiscard]]

This commit is contained in:
Tim Ledbetter
2025-12-15 22:43:57 +00:00
committed by Sam Atkins
parent 551ea7d6fc
commit da92e1a054
Notes: github-actions[bot] 2025-12-16 11:24:35 +00:00
2 changed files with 2 additions and 3 deletions

View File

@@ -344,7 +344,6 @@ Optional<Vector<CSS::LengthPercentage>> IntersectionObserver::parse_a_margin(JS:
if (token.is(CSS::Parser::Token::Type::Dimension)) {
auto length = CSS::Length(token.token().dimension_value(), CSS::string_to_length_unit(token.token().dimension_unit()).value());
if (length.is_absolute()) {
length.absolute_length_to_px();
tokens_length_percentage.append(length);
continue;
}