Changeset 295417 in webkit


Ignore:
Timestamp:
Jun 9, 2022, 5:05:35 AM (3 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Philippe Normand <philn@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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp

    r295410 r295417  
    3434}
    3535
    36 auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand fontShorthand) -> SystemFontShorthandInfo
     36auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand) -> SystemFontShorthandInfo
    3737{
    3838    GtkSettings* settings = gtk_settings_get_default();
     
    5555        size = size * (screenDPI() / 72.0);
    5656
    57     SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), size, normalWeightValue() };
     57    SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), static_cast<float>(size), normalWeightValue() };
    5858    pango_font_description_free(pangoDescription);
    5959    return result;
Note: See TracChangeset for help on using the changeset viewer.