mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibWeb: Serialize Resolution according to spec
This commit is contained in:
@@ -22,7 +22,7 @@ Resolution::Resolution(float value, Type type)
|
||||
|
||||
ErrorOr<String> Resolution::to_string() const
|
||||
{
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
return String::formatted("{}dppx", to_dots_per_pixel());
|
||||
}
|
||||
|
||||
float Resolution::to_dots_per_pixel() const
|
||||
|
||||
Reference in New Issue
Block a user