Changeset 252451 in webkit


Ignore:
Timestamp:
Nov 13, 2019 10:58:56 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Fix GTK/WPE builds after enabling POINTER_EVENTS support
https://bugs.webkit.org/show_bug.cgi?id=204164

Patch by Nikolas Zimmermann <nzimmermann@igalia.com> on 2019-11-13
Reviewed by Žan Doberšek.

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

Turn both toTouchAction() / toIndex() into static inline instead of
constexpr functions to appease g++ 8.3.0.

  • rendering/EventRegion.cpp:

(WebCore::toIndex):
(WebCore::toTouchAction):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252450 r252451  
     12019-11-13  Nikolas Zimmermann  <nzimmermann@igalia.com>
     2
     3        Fix GTK/WPE builds after enabling POINTER_EVENTS support
     4        https://bugs.webkit.org/show_bug.cgi?id=204164
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Our g++ 8.3.0 yields "error: call to non-constexpr function
     9        WTFReportAssertionFailure" when compiling rendering/EventRegion.cpp
     10        since r252366.
     11
     12        Turn both toTouchAction() / toIndex() into static inline instead of
     13        constexpr functions to appease g++ 8.3.0.
     14
     15        * rendering/EventRegion.cpp:
     16        (WebCore::toIndex):
     17        (WebCore::toTouchAction):
     18
    1192019-11-13  Wenson Hsieh  <wenson_hsieh@apple.com>
    220
  • trunk/Source/WebCore/rendering/EventRegion.cpp

    r252409 r252451  
    129129#if ENABLE(POINTER_EVENTS)
    130130
    131 constexpr unsigned toIndex(TouchAction touchAction)
     131static inline unsigned toIndex(TouchAction touchAction)
    132132{
    133133    switch (touchAction) {
     
    149149}
    150150
    151 constexpr TouchAction toTouchAction(unsigned index)
     151static inline TouchAction toTouchAction(unsigned index)
    152152{
    153153    switch (index) {
Note: See TracChangeset for help on using the changeset viewer.