mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Use doubles for CSS dimension types
Avoid unintentionally converting between float and double multiple times by just using double everywhere. Also, remove the unused `int` versions of their constructors.
This commit is contained in:
parent
95f80bc65b
commit
1feacd4b52
Notes:
sideshowbarker
2024-07-16 18:03:21 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1feacd4b52
Pull-request: https://github.com/SerenityOS/serenity/pull/20678
16 changed files with 34 additions and 73 deletions
|
@ -9,12 +9,6 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
Time::Time(int value, Type type)
|
||||
: m_type(type)
|
||||
, m_value(value)
|
||||
{
|
||||
}
|
||||
|
||||
Time::Time(double value, Type type)
|
||||
: m_type(type)
|
||||
, m_value(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue