mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibWeb: Use int-hash for CSSPixels
This commit is contained in:
parent
6c341ca985
commit
36dcb0ada7
1 changed files with 1 additions and 2 deletions
|
@ -283,8 +283,7 @@ template<>
|
|||
struct Traits<Web::CSSPixels> : public GenericTraits<Web::CSSPixels> {
|
||||
static unsigned hash(Web::CSSPixels const& key)
|
||||
{
|
||||
VERIFY(isfinite(key.to_double()));
|
||||
return Traits<double>::hash(key.to_double());
|
||||
return Traits<int>::hash(key.raw_value());
|
||||
}
|
||||
|
||||
static bool equals(Web::CSSPixels const& a, Web::CSSPixels const& b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue