diff --git a/Userland/Libraries/LibWeb/PixelUnits.h b/Userland/Libraries/LibWeb/PixelUnits.h index 702107e81b1..0e99009c76c 100644 --- a/Userland/Libraries/LibWeb/PixelUnits.h +++ b/Userland/Libraries/LibWeb/PixelUnits.h @@ -17,33 +17,33 @@ namespace Web { /// DevicePixels: A position or length on the physical display. AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(int, DevicePixels, Arithmetic, CastToUnderlying, Comparison, Increment); -template +template constexpr bool operator==(DevicePixels left, T right) { return left.value() == right; } -template +template constexpr bool operator!=(DevicePixels left, T right) { return left.value() != right; } -template +template constexpr bool operator>(DevicePixels left, T right) { return left.value() > right; } -template +template constexpr bool operator<(DevicePixels left, T right) { return left.value() < right; } -template +template constexpr bool operator>=(DevicePixels left, T right) { return left.value() >= right; } -template +template constexpr bool operator<=(DevicePixels left, T right) { return left.value() <= right; } -template +template constexpr DevicePixels operator*(DevicePixels left, T right) { return left.value() * right; } -template +template constexpr DevicePixels operator*(T left, DevicePixels right) { return right * left; } -template +template constexpr DevicePixels operator/(DevicePixels left, T right) { return left.value() / right; } -template +template constexpr DevicePixels operator%(DevicePixels left, T right) { return left.value() % right; } /// CSSPixels: A position or length in CSS "reference pixels", independent of zoom or screen DPI.