mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:47:36 +00:00
LibWeb: Serialize Resolution according to spec
This commit is contained in:
parent
b6d767fbb0
commit
5cdeb994b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue