mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 12:41:59 +03:00
LibGfx: Allow outside specilization of Rect::to_rounded
This commit is contained in:
parent
9e22f01eba
commit
17b4109ba9
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/17b4109ba9 Pull-request: https://github.com/SerenityOS/serenity/pull/20427 Reviewed-by: https://github.com/MacDue Reviewed-by: https://github.com/kalenikaliaksandr ✅
@ -976,6 +976,10 @@ public:
|
||||
return Rect<U>(*this);
|
||||
}
|
||||
|
||||
// For extern specialization, like CSSPixels
|
||||
template<typename U>
|
||||
[[nodiscard]] Rect<U> to_rounded() const = delete;
|
||||
|
||||
template<FloatingPoint U>
|
||||
[[nodiscard]] ALWAYS_INLINE Rect<U> to_rounded() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user