mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Mark absolute_length_to_px() methods as [[nodiscard]]
This commit is contained in:
committed by
Sam Atkins
parent
551ea7d6fc
commit
da92e1a054
Notes:
github-actions[bot]
2025-12-16 11:24:35 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/da92e1a0544 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7147 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user