Title: [271095] trunk/Source/WebCore
Revision
271095
Author
[email protected]
Date
2020-12-27 10:37:50 -0800 (Sun, 27 Dec 2020)

Log Message

Fix incorrect return types of fallback color conversion functions
https://bugs.webkit.org/show_bug.cgi?id=220159

Reviewed by Dean Jackson.

* platform/graphics/ColorConversion.h:
Fixup return types of fallback conversion functions to match signature.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (271094 => 271095)


--- trunk/Source/WebCore/ChangeLog	2020-12-27 18:34:31 UTC (rev 271094)
+++ trunk/Source/WebCore/ChangeLog	2020-12-27 18:37:50 UTC (rev 271095)
@@ -1,5 +1,15 @@
 2020-12-27  Sam Weinig  <[email protected]>
 
+        Fix incorrect return types of fallback color conversion functions
+        https://bugs.webkit.org/show_bug.cgi?id=220159
+
+        Reviewed by Dean Jackson.
+
+        * platform/graphics/ColorConversion.h:
+        Fixup return types of fallback conversion functions to match signature. 
+
+2020-12-27  Sam Weinig  <[email protected]>
+
         Generalize callWithColorType to work with either float or uint8_t color types
         https://bugs.webkit.org/show_bug.cgi?id=220155
 

Modified: trunk/Source/WebCore/platform/graphics/ColorConversion.h (271094 => 271095)


--- trunk/Source/WebCore/platform/graphics/ColorConversion.h	2020-12-27 18:34:31 UTC (rev 271094)
+++ trunk/Source/WebCore/platform/graphics/ColorConversion.h	2020-12-27 18:37:50 UTC (rev 271095)
@@ -106,27 +106,27 @@
     return toSRGBA(toXYZA(color));
 }
 
-template<typename T> SRGBA<float> toLinearSRGBA(const T& color)
+template<typename T> LinearSRGBA<float> toLinearSRGBA(const T& color)
 {
     return toLinearSRGBA(toXYZA(color));
 }
 
-template<typename T> SRGBA<float> toDisplayP3(const T& color)
+template<typename T> DisplayP3<float> toDisplayP3(const T& color)
 {
     return toDisplayP3(toXYZA(color));
 }
 
-template<typename T> SRGBA<float> toLinearDisplayP3(const T& color)
+template<typename T> LinearDisplayP3<float> toLinearDisplayP3(const T& color)
 {
     return toLinearDisplayP3(toXYZA(color));
 }
 
-template<typename T> SRGBA<float> toHSLA(const T& color)
+template<typename T> HSLA<float> toHSLA(const T& color)
 {
     return toHSLA(toXYZA(color));
 }
 
-template<typename T> SRGBA<float> toCMYKA(const T& color)
+template<typename T> CMYKA<float> toCMYKA(const T& color)
 {
     return toCMYKA(toXYZA(color));
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to