<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>272676</bug_id>
          
          <creation_ts>2024-04-15 07:37:55 -0700</creation_ts>
          <short_desc>Rename screenDPI() to fontDPI() where used for font scaling</short_desc>
          <delta_ts>2024-04-17 04:54:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glen Whitney">gwhitneycom5</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>dpino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2028522</commentid>
    <comment_count>0</comment_count>
    <who name="Glen Whitney">gwhitneycom5</who>
    <bug_when>2024-04-15 07:37:55 -0700</bug_when>
    <thetext>As reported in https://bugs.webkit.org/show_bug.cgi?id=247980, WebKitGTK has display and font scaling issues on certain combinations of display pixel density and GTK settings. Based on the code and the proposed fix in https://github.com/WebKit/WebKit/pull/26938, it appears that these problems have arisen because in the GTK context, &quot;screenDPI&quot; in some places in the code refers to the pixel density of the underlying display, whereas in others it refers to a nominal DPI used for the purposes of scaling fonts. The latter uses should be renamed as fontDPI. This bug is being filed at @mcatanzaro&apos;s suggestion to provide an associated bug for the renaming PR https://github.com/WebKit/WebKit/pull/26954.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028542</commentid>
    <comment_count>1</comment_count>
    <who name="Glen Whitney">gwhitneycom5</who>
    <bug_when>2024-04-15 09:42:39 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26954</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2028760</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-16 02:50:13 -0700</bug_when>
    <thetext>Committed 277537@main (51f27458d0d4): &lt;https://commits.webkit.org/277537@main&gt;

Reviewed commits have been landed. Closing PR #26954 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029073</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-04-17 02:24:54 -0700</bug_when>
    <thetext>The WPE-Linux-ARM32-bit-Release-Debian-Stable-Build bot is failing after this change with the following error:

```
/usr/bin/ld: Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-81.cpp.o: in function `WebCore::fontDPI()&apos;:
UnifiedSource-3c72abbe-81.cpp:(.text._ZN7WebCore7fontDPIEv+0x2): undefined reference to `WebCore::primaryScreenDisplayID()&apos;
collect2: error: ld returned 1 exit status
[1953/2173] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-30.cpp.o
```

This bot builds with the flag `--cmakeargs=-DENABLE_WPE_PLATFORM_DRM=OFF`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029074</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-04-17 02:25:58 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/27378</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029090</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-17 04:54:09 -0700</bug_when>
    <thetext>Committed 277609@main (8965f9b7d1be): &lt;https://commits.webkit.org/277609@main&gt;

Reviewed commits have been landed. Closing PR #27378 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>