⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 252402 in webkit


Ignore:
Timestamp:
Nov 13, 2019, 4:31:54 AM (7 years ago)
Author:
Nikolas Zimmermann
Message:

Unreviewed, fix GTK/WPE builds after enabling POINTER_EVENTS support.

Our g++ 8.3.0 yields "error: call to non-constexpr function
WTFReportAssertionFailure" when compiling rendering/EventRegion.cpp
since r252366.

Simply remove the ASSERT_NOT_REACHED() from toIndex(): a missing value
in the switch statement will be caught by compiler warnings. Remove the
constexpr flag from toTouchAction(): in this case, the
ASSERT_NOT_REACHED() is useful and should stay.

Rubber-stamped by Philippe Normand.

  • rendering/EventRegion.cpp:

(WebCore::toIndex): Remove call to ASSERT_NOT_REACHED().
(WebCore::toTouchAction): Keep ASSERT_NOT_REACHED(), removed constexpr.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252399 r252402  
     12019-11-13  Nikolas Zimmermann  <nzimmermann@igalia.com>
     2
     3        Unreviewed, fix GTK/WPE builds after enabling POINTER_EVENTS support.
     4
     5        Our g++ 8.3.0 yields "error: call to non-constexpr function
     6        WTFReportAssertionFailure" when compiling rendering/EventRegion.cpp
     7        since r252366.
     8
     9        Simply remove the ASSERT_NOT_REACHED() from toIndex(): a missing value
     10        in the switch statement will be caught by compiler warnings. Remove the
     11        constexpr flag from toTouchAction(): in this case, the
     12        ASSERT_NOT_REACHED() is useful and should stay.
     13
     14        Rubber-stamped by Philippe Normand.
     15
     16        * rendering/EventRegion.cpp:
     17        (WebCore::toIndex): Remove call to ASSERT_NOT_REACHED().
     18        (WebCore::toTouchAction): Keep ASSERT_NOT_REACHED(), removed constexpr.
     19
    1202019-11-13  Philippe Normand  <pnormand@igalia.com>
    221
  • trunk/Source/WebCore/rendering/EventRegion.cpp

    r248604 r252402  
    145145        break;
    146146    }
    147     ASSERT_NOT_REACHED();
    148147    return 0;
    149148}
    150149
    151 constexpr TouchAction toTouchAction(unsigned index)
     150TouchAction toTouchAction(unsigned index)
    152151{
    153152    switch (index) {
Note: See TracChangeset for help on using the changeset viewer.