<?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>303504</bug_id>
          
          <creation_ts>2025-12-03 15:12:00 -0800</creation_ts>
          <short_desc>REGRESSION(303805@main) GCC 12 build broken as the new generated RenderStyle::display() is not constexpr</short_desc>
          <delta_ts>2025-12-04 05:04:22 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>303398</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>303398</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2163048</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-12-03 15:12:00 -0800</bug_when>
    <thetext>The GCC 12 stable bots for WPE and GTK broke after 303805@main with the following error:

```
In file included from ../../../Source/WebCore/rendering/style/RenderStyleSetters.h:29,
                 from WebCore/DerivedSources/StyleBuilderGenerated.cpp:8,
                 from WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-198.cpp:8:
../../../Source/WebCore/rendering/style/RenderStyleInlines.h: In member function ‘constexpr bool WebCore::RenderStyle::isDisplayRegionType() const’:
../../../Source/WebCore/rendering/style/RenderStyleInlines.h:228:19: error: call to non-‘constexpr’ function ‘WebCore::DisplayType WebCore::RenderStyle::display() const’
  228 |     return display() == DisplayType::Block
      |            ~~~~~~~^~
In file included from ../../../Source/WebCore/rendering/style/RenderStyleInlines.h:70:
WebCore/PrivateHeaders/WebCore/RenderStyleInlinesGenerated.h:63:20: note: ‘WebCore::DisplayType WebCore::RenderStyle::display() const’ declared here
   63 | inline DisplayType RenderStyle::display() const
      |                    ^~~~~~~~~~~
../../../Source/WebCore/rendering/style/RenderStyleInlines.h: In member function ‘constexpr bool WebCore::RenderStyle::doesDisplayGenerateBlockContainer() const’:
../../../Source/WebCore/rendering/style/RenderStyleInlines.h:270:33: error: call to non-‘constexpr’ function ‘WebCore::DisplayType WebCore::RenderStyle::display() const’
  270 |     auto display = this-&gt;display();
      |                    ~~~~~~~~~~~~~^~
&lt;snip long list&gt;
```

As commented by Claudio in the PR[1] earlier today, this is happening because `RenderStyle::display()` lost the constexpr tag as this method is now generated:

```
-    constexpr DisplayType display() const { return static_cast&lt;DisplayType&gt;(m_nonInheritedFlags.effectiveDisplay); }
+    inline DisplayType display() const;
```

[1] https://github.com/WebKit/WebKit/pull/54710#pullrequestreview-3534814541</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2163199</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-12-04 05:04:22 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 303398 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>