<?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>232199</bug_id>
          
          <creation_ts>2021-10-23 09:49:37 -0700</creation_ts>
          <short_desc>[GTK] REGRESSION (r279171) (r279854): ENABLE_VIDEO=off build broken</short_desc>
          <delta_ts>2021-10-25 14:24:31 -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>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>232264</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>2khramtsov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>kkinnunen</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1808088</commentid>
    <comment_count>0</comment_count>
    <who name="">2khramtsov</who>
    <bug_when>2021-10-23 09:49:37 -0700</bug_when>
    <thetext>ENABLE_VIDEO=off ENABLE_WEB_AUDIO=off build (with r270758 reverted see bug 232198) on FreeBSD fails.

Regressed by: (r279171) https://github.com/WebKit/WebKit/commit/7c0f13f37ec, likely not guarded where appropriate,
downstream reverted [1] this and partly reverted https://github.com/WebKit/WebKit/commit/eb3ebb4849987
Source/WebCore/accessibility/AXObjectCache.cpp: removed #include &quot;AXImage.h

Regressed by: (r279854) https://github.com/WebKit/WebKit/commit/b87d5003f832

In file included from /wrkdirs/usr/ports/www/webkit2-gtk3/work/.build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-19.cpp:6:
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp:272:33: error: out-of-line definition of &apos;paintFrameForMedia&apos; does not match any declaration in &apos;WebCore::BifurcatedGraphicsContext&apos;
void BifurcatedGraphicsContext::paintFrameForMedia(MediaPlayer&amp; player, const FloatRect&amp; destination)
                                ^~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp:274:22: error: no member named &apos;paintFrameForMedia&apos; in &apos;WebCore::GraphicsContext&apos;
    m_primaryContext.paintFrameForMedia(player, destination);
    ~~~~~~~~~~~~~~~~ ^
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp:275:24: error: no member named &apos;paintFrameForMedia&apos; in &apos;WebCore::
GraphicsContext&apos;
    m_secondaryContext.paintFrameForMedia(player, destination);
    ~~~~~~~~~~~~~~~~~~ ^
3 errors generated.

Downstream fix is to guard BifurcatedGraphicsContext::paintFrameForMedia with ENABLE(VIDEO) [1]:

diff --git Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
index c0ce72c..a2a58df 100644
--- Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
+++ Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
@@ -269,11 +269,13 @@ void BifurcatedGraphicsContext::drawPattern(NativeImage&amp; nativeImage, const Floa
     m_secondaryContext.drawPattern(nativeImage, imageSize, destRect, tileRect, patternTransform, phase, spacing, options);
 }
 
+#if ENABLE(VIDEO)
 void BifurcatedGraphicsContext::paintFrameForMedia(MediaPlayer&amp; player, const FloatRect&amp; destination)
 {
     m_primaryContext.paintFrameForMedia(player, destination);
     m_secondaryContext.paintFrameForMedia(player, destination);
 }
+#endif
 
 void BifurcatedGraphicsContext::scale(const FloatSize&amp; scale)
 {

[1]: https://cgit.freebsd.org/ports/commit/?id=f73bc57ac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808582</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-10-25 14:24:31 -0700</bug_when>
    <thetext>Hi, thanks for the bug report! I noticed this issue myself and started
working on a patch without realizing it had been reported here already.
A few more changes are needed to fix the build with the current state
of the tree, which the patch bug #232264 includes. Once that lands, we
will merge a backport in the 2.34.x stable release branch, too :)

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

    </bug>

</bugzilla>