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

Changeset 243648 in webkit


Ignore:
Timestamp:
Mar 29, 2019, 10:44:14 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

WebKitTestRunner crashes when running pointerevents/ios/touch-action-none-in-overflow-scrolling-touch.html
https://bugs.webkit.org/show_bug.cgi?id=196345

Patch by Antoine Quint <Antoine Quint> on 2019-03-29
Reviewed by Dean Jackson.

An enum used within a WTF::OptionSet needs to have only power-of-two values that are larger than 0.

  • platform/TouchAction.h:
  • rendering/style/StyleRareNonInheritedData.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243647 r243648  
     12019-03-29  Antoine Quint  <graouts@apple.com>
     2
     3        WebKitTestRunner crashes when running pointerevents/ios/touch-action-none-in-overflow-scrolling-touch.html
     4        https://bugs.webkit.org/show_bug.cgi?id=196345
     5
     6        Reviewed by Dean Jackson.
     7
     8        An enum used within a WTF::OptionSet needs to have only power-of-two values that are larger than 0.
     9
     10        * platform/TouchAction.h:
     11        * rendering/style/StyleRareNonInheritedData.h:
     12
    1132019-03-29  Michael Catanzaro  <mcatanzaro@igalia.com>
    214
  • trunk/Source/WebCore/platform/TouchAction.h

    r240472 r243648  
    3131
    3232enum class TouchAction : uint8_t {
    33     Auto         = 0,
    34     None         = 1 << 0,
    35     Manipulation = 1 << 1,
    36     PanX         = 1 << 2,
    37     PanY         = 1 << 3,
    38     PinchZoom    = 1 << 4,
     33    Auto         = 1 << 0,
     34    None         = 1 << 1,
     35    Manipulation = 1 << 2,
     36    PanX         = 1 << 3,
     37    PanY         = 1 << 4,
     38    PinchZoom    = 1 << 5,
    3939};
    4040
  • trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h

    r240472 r243648  
    176176
    177177#if ENABLE(POINTER_EVENTS)
    178     unsigned touchActions : 5; // TouchAction
     178    unsigned touchActions : 6; // TouchAction
    179179#endif
    180180
Note: See TracChangeset for help on using the changeset viewer.