<?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>193380</bug_id>
          
          <creation_ts>2019-01-12 07:50:08 -0800</creation_ts>
          <short_desc>[GTK][STABLE] Build fails with OpenGL disabled due to missing PlatformWheelEvent::isEndOfNonMomentumScroll()</short_desc>
          <delta_ts>2019-12-19 01:07:02 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1493976</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-01-12 07:50:08 -0800</bug_when>
    <thetext>This issue has been found by the Buildroot autobuild infrastructure,
the relevant part of the build log is copied below; the complete build
configuration can be found at:

  http://autobuild.buildroot.net/results/dd89d219efb711ecaa71a268bd6b36b06b035c80

The issue here is that OpenGL support is disabled at build time (not how
the config file has both BR2_PACKAGE_LIBGTK3_X11 and BR2_PACKAGE_HAS_LIBGLES
disabled, which results in -DENABLE_OPENGL=OFF and -DENABLE_GLES2=OFF being
passed to CMake.

This results in ENABLE_ASYNC_SCROLLING being disabled, due to this bit in
Source/cmake/OptionsGTK.cmake:

   WEBKIT_OPTION_DEPEND(ENABLE_ASYNC_SCROLLING ENABLE_OPENGL)

Then, in Source/WebCore/platform/PlatformWheelEvent.h the declaration for
the isEndOfNonMomentumScroll() method is guarded with ENABLE(ASYNC_SCROLLING)
but the actual implementation is guarded with PLATFORM(GTK) — resulting in
the error below due to the missing declaration.

WebKitGTK+ version 2.22.5 is affected, but the issue seems to be solved
in trunk.

----

In file included from /home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/Source/WebCore/dom/WheelEvent.h:28:0,
                 from /home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/DerivedSources/WebCore/EventHeaders.h:227,
                 from /home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/DerivedSources/WebCore/EventFactory.cpp:29,
                 from /home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/DerivedSources/WebCore/unified-sources/UnifiedSource1.cpp:3:
/home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/Source/WebCore/platform/PlatformWheelEvent.h:216:60: error: no &apos;bool WebCore::PlatformWheelEvent::isEndOfNonMomentumScroll() const&apos; member function declared in class &apos;WebCore::PlatformWheelEvent&apos;
 inline bool PlatformWheelEvent::isEndOfNonMomentumScroll() const
                                                            ^~~~~
/home/buildroot/autobuild/run/instance-2/output/build/webkitgtk-2.22.5/Source/WebCore/platform/PlatformWheelEvent.h:221:67: error: no &apos;bool WebCore::PlatformWheelEvent::isTransitioningToMomentumScroll() const&apos; member function declared in class &apos;WebCore::PlatformWheelEvent&apos;
 inline bool PlatformWheelEvent::isTransitioningToMomentumScroll() const
                                                                   ^~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1493977</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-12 08:06:51 -0800</bug_when>
    <thetext>Maybe fixed in trunk by r238928?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1494005</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-01-12 15:50:13 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #1)
&gt; Maybe fixed in trunk by r238928?

Yes, that&apos;s my guess as well. I am leaving a Buildroot compilation
overnight with the same settings as the autobuilder *and* r238928
applied to see whether that works. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1494034</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-01-13 07:19:25 -0800</bug_when>
    <thetext>(In reply to Adrian Perez from comment #2)
&gt; (In reply to Michael Catanzaro from comment #1)
&gt; &gt; Maybe fixed in trunk by r238928?
&gt; 
&gt; Yes, that&apos;s my guess as well. I am leaving a Buildroot compilation
&gt; overnight with the same settings as the autobuilder *and* r238928
&gt; applied to see whether that works. Thanks!

It turns out that applying only r238928 is not enough, with it applied
a different build error shows up:


In file included from /home/aperez/devel/wpe/buildroot/ttt/build/webkitgtk-2.22.5/DerivedSources/WebCore/unified-sources/UnifiedSource322.cpp:8:0:                                   
/home/aperez/devel/wpe/buildroot/ttt/build/webkitgtk-2.22.5/Source/WebCore/platform/gtk/ScrollAnimatorGtk.cpp: In member function ‘virtual bool WebCore::ScrollAnimatorGtk::handleWheelEvent(const WebCore::PlatformWheelEvent&amp;)’:
/home/aperez/devel/wpe/buildroot/ttt/build/webkitgtk-2.22.5/Source/WebCore/platform/gtk/ScrollAnimatorGtk.cpp:135:15: error: ‘const class WebCore::PlatformWheelEvent’ has no member named ‘isEndOfNonMomentumScroll’
     if (event.isEndOfNonMomentumScroll()) {
               ^~~~~~~~~~~~~~~~~~~~~~~~
/home/aperez/devel/wpe/buildroot/ttt/build/webkitgtk-2.22.5/Source/WebCore/platform/gtk/ScrollAnimatorGtk.cpp:140:15: error: ‘const class WebCore::PlatformWheelEvent’ has no member named ‘isTransitioningToMomentumScroll’
     if (event.isTransitioningToMomentumScroll()) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600192</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-12-19 01:07:02 -0800</bug_when>
    <thetext>Buildroot is shipping WebKitGTK 2.26.x, this issue is not a problem anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>