Title: [295417] trunk/Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp
Revision
295417
Author
commit-qu...@webkit.org
Date
2022-06-09 05:05:35 -0700 (Thu, 09 Jun 2022)

Log Message

REGRESSION(251416@main): Broke GTK...
https://bugs.webkit.org/show_bug.cgi?id=241460

Patch by Philippe Normand <ph...@igalia.com> on 2022-06-09
Unreviewed, fix GTK build.

* Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp:
(WebCore::SystemFontDatabase::platformSystemFontShorthandInfo):

Canonical link: https://commits.webkit.org/251423@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp (295416 => 295417)


--- trunk/Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp	2022-06-09 11:30:45 UTC (rev 295416)
+++ trunk/Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp	2022-06-09 12:05:35 UTC (rev 295417)
@@ -33,7 +33,7 @@
     return database.get();
 }
 
-auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand fontShorthand) -> SystemFontShorthandInfo
+auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand) -> SystemFontShorthandInfo
 {
     GtkSettings* settings = gtk_settings_get_default();
     if (!settings)
@@ -54,7 +54,7 @@
     if (!pango_font_description_get_size_is_absolute(pangoDescription))
         size = size * (screenDPI() / 72.0);
 
-    SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), size, normalWeightValue() };
+    SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), static_cast<float>(size), normalWeightValue() };
     pango_font_description_free(pangoDescription);
     return result;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to