mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb: Serialize Resolution according to spec
This commit is contained in:
parent
b6d767fbb0
commit
5cdeb994b2
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/stelar7
Commit: 5cdeb994b2
Pull-request: https://github.com/SerenityOS/serenity/pull/19163
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