<?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>254821</bug_id>
          
          <creation_ts>2023-03-31 09:20:13 -0700</creation_ts>
          <short_desc>Fix build of SourceBrush.cpp</short_desc>
          <delta_ts>2023-03-31 12:26:15 -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>WebCore Misc.</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=254742</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1945705</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 09:20:13 -0700</bug_when>
    <thetext>Can&apos;t build SourceBrush.cpp with GCC 13:

In file included from /builddir/build/BUILD/webkitgtk-2.41.1/redhat-linux-build/webkitgtk-6.0/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-35.cpp:4:
/builddir/build/BUILD/webkitgtk-2.41.1/Source/WebCore/platform/graphics/SourceBrush.cpp: In member function &apos;void WebCore::SourceBrush::setGradient(WTF::Ref&lt;WebCore::Gradient&gt;&amp;&amp;, const WebCore::AffineTransform&amp;)&apos;:
/builddir/build/BUILD/webkitgtk-2.41.1/Source/WebCore/platform/graphics/SourceBrush.cpp:89:82: error: converting to &apos;std::optional&lt;WebCore::SourceBrush::Brush&gt;&apos; from initializer list would use explicit constructor &apos;constexpr std::optional&lt;_Tp&gt;::optional(_Up&amp;&amp;) [with _Up = WebCore::SourceBrush::Brush::LogicalGradient; typename std::enable_if&lt;__and_v&lt;std::__not_&lt;std::is_same&lt;std::optional&lt;_Tp&gt;, typename std::remove_cv&lt;typename std::remove_reference&lt;_Iter&gt;::type&gt;::type&gt; &gt;, std::__not_&lt;std::is_same&lt;std::in_place_t, typename std::remove_cv&lt;typename std::remove_reference&lt;_Iter&gt;::type&gt;::type&gt; &gt;, std::is_constructible&lt;_Tp, _Up&gt;, std::__not_&lt;std::is_convertible&lt;_Iter, _Iterator&gt; &gt; &gt;, bool&gt;::type &lt;anonymous&gt; = false; _Tp = WebCore::SourceBrush::Brush]&apos;
   89 |     m_brush = { Brush::LogicalGradient { { WTFMove(gradient) }, spaceTransform } };
      |                                                                                  ^
/builddir/build/BUILD/webkitgtk-2.41.1/Source/WebCore/platform/graphics/SourceBrush.cpp: In member function &apos;void WebCore::SourceBrush::setPattern(WTF::Ref&lt;WebCore::Pattern&gt;&amp;&amp;)&apos;:
/builddir/build/BUILD/webkitgtk-2.41.1/Source/WebCore/platform/graphics/SourceBrush.cpp:94:87: error: converting to &apos;std::optional&lt;WebCore::SourceBrush::Brush&gt;&apos; from initializer list would use explicit constructor &apos;constexpr std::optional&lt;_Tp&gt;::optional(_Up&amp;&amp;) [with _Up = std::variant&lt;WebCore::SourceBrush::Brush::LogicalGradient, WTF::Ref&lt;WebCore::Pattern, WTF::RawPtrTraits&lt;WebCore::Pattern&gt; &gt; &gt;; typename std::enable_if&lt;__and_v&lt;std::__not_&lt;std::is_same&lt;std::optional&lt;_Tp&gt;, typename std::remove_cv&lt;typename std::remove_reference&lt;_Iter&gt;::type&gt;::type&gt; &gt;, std::__not_&lt;std::is_same&lt;std::in_place_t, typename std::remove_cv&lt;typename std::remove_reference&lt;_Iter&gt;::type&gt;::type&gt; &gt;, std::is_constructible&lt;_Tp, _Up&gt;, std::__not_&lt;std::is_convertible&lt;_Iter, _Iterator&gt; &gt; &gt;, bool&gt;::type &lt;anonymous&gt; = false; _Tp = WebCore::SourceBrush::Brush]&apos;
   94 |     m_brush = { Brush::Variant { std::in_place_type&lt;Ref&lt;Pattern&gt;&gt;, WTFMove(pattern) } };
      |                                                                                       ^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945706</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 09:22:22 -0700</bug_when>
    <thetext>262339@main is not enough to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945783</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 11:22:51 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12248</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945803</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-31 12:25:47 -0700</bug_when>
    <thetext>Committed 262434@main (93920b55f52f): &lt;https://commits.webkit.org/262434@main&gt;

Reviewed commits have been landed. Closing PR #12248 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945804</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-31 12:26:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/107483093&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>