<?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>248014</bug_id>
          
          <creation_ts>2022-11-16 19:32:30 -0800</creation_ts>
          <short_desc>[WinCairo][WK1] Can&apos;t paint a font after painting very large font</short_desc>
          <delta_ts>2022-12-22 23:32:16 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=246844</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1913047</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-16 19:32:30 -0800</bug_when>
    <thetext>[WinCairo][WK1] Can&apos;t paint a font after painting very large font

For example, fast/text/letter-spacing-produces-nan-width.html contains a very large font.
After load the test case, fast/text/simple-lines-float.html fails.

&gt; python3.exe ./Tools/Scripts/run-webkit-tests --wincairo --debug -1 --no-retry-failures fast/text/letter-spacing-produces-nan-width.html fast/text/simple-lines-float.html --iterations=2 -v

&gt; [1/4] fast/text/simple-lines-float.html passed
&gt; [2/4] fast/text/letter-spacing-produces-nan-width.html passed
&gt; [3/4] fast/text/simple-lines-float.html failed unexpectedly (reference mismatch maxDifference=255; totalPixels=1356)
&gt; [4/4] fast/text/letter-spacing-produces-nan-width.html passed

The first test run of simple-lines-float.html passed, but failed in the second because it was after letter-spacing-produces-nan-width.html.

See also:
  Bug 246844 – REGRESSION(cairo 1.17.6)[WinCairo] rendering glitches of twitter.com and yahoo.co.jp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913095</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-16 22:34:21 -0800</bug_when>
    <thetext>PR: https://github.com/WebKitForWindows/WebKitRequirements/pull/101</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913255</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-17 12:06:38 -0800</bug_when>
    <thetext>WinCairo WK1 is reporting the following flaky test failures. They seems to be caused by this bug.

Unexpected flakiness: image-only failures (5)
  fast/css3-text/css3-text-decoration/text-decoration-style-double-space-scales.html [ ImageOnlyFailure Pass ]
  fast/text/mobileasset-font.html [ ImageOnlyFailure Pass ]
  fast/text/multi-code-unit-simple-path.html [ ImageOnlyFailure Pass ]
  fast/text/simple-lines-float.html [ ImageOnlyFailure Pass ]
  fast/text/text-underline-position-subscript.html [ ImageOnlyFailure Pass ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913765</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-20 13:02:48 -0800</bug_when>
    <thetext>cairo issue ticket:
[windows] Don&apos;t leave cairo_font_face_t in an error state even after very large cairo_scaled_font_t creation (#607) · Issues · cairo / cairo · GitLab
https://gitlab.freedesktop.org/cairo/cairo/-/issues/607</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921620</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-12-22 23:32:16 -0800</bug_when>
    <thetext>Fixed by https://github.com/WebKitForWindows/WebKitRequirements/releases/tag/v2022.12.22</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>