Title: [260745] trunk/Source/WebCore
Revision
260745
Author
csaave...@igalia.com
Date
2020-04-27 02:43:59 -0700 (Mon, 27 Apr 2020)

Log Message

[GTK4] GdkRGBA has float members instead of double

Unreviewed warning fix.

* platform/graphics/gtk/ColorGtk.cpp:
(WebCore::Color::operator GdkRGBA const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (260744 => 260745)


--- trunk/Source/WebCore/ChangeLog	2020-04-27 09:09:32 UTC (rev 260744)
+++ trunk/Source/WebCore/ChangeLog	2020-04-27 09:43:59 UTC (rev 260745)
@@ -1,3 +1,12 @@
+2020-04-27  Claudio Saavedra  <csaave...@igalia.com>
+
+        [GTK4] GdkRGBA has float members instead of double
+
+        Unreviewed warning fix.
+
+        * platform/graphics/gtk/ColorGtk.cpp:
+        (WebCore::Color::operator GdkRGBA const):
+
 2020-04-27  Ross Kirsling  <ross.kirsl...@sony.com>
 
         [JSC] CallData/ConstructData should include CallType/ConstructType

Modified: trunk/Source/WebCore/platform/graphics/gtk/ColorGtk.cpp (260744 => 260745)


--- trunk/Source/WebCore/platform/graphics/gtk/ColorGtk.cpp	2020-04-27 09:09:32 UTC (rev 260744)
+++ trunk/Source/WebCore/platform/graphics/gtk/ColorGtk.cpp	2020-04-27 09:43:59 UTC (rev 260745)
@@ -38,7 +38,11 @@
     if (isExtended())
         return { asExtended().red(), asExtended().green(), asExtended().blue(), asExtended().alpha() };
 
+#if USE(GTK4)
+    float red, green, blue, alpha;
+#else
     double red, green, blue, alpha;
+#endif
     getRGBA(red, green, blue, alpha);
     return { red, green, blue, alpha };
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to