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

Changeset 277362 in webkit


Ignore:
Timestamp:
May 12, 2021, 1:09:06 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r277083): Proximity scroll snap is broken on iOS
https://bugs.webkit.org/show_bug.cgi?id=225649

Patch by Martin Robinson <mrobinson@igalia.com> on 2021-05-12
Reviewed by Simon Fraser.

No new tests. iOS does not have great support for the event sending test
infrastructure used to test scroll snap.

  • Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:

(ArgumentCoder<FloatScrollSnapOffsetsInfo>::encode): Include the snap type when encoding ScrollSnapOffsetsInfo.
(ArgumentCoder<FloatScrollSnapOffsetsInfo>::decode): Include the snap type when decoding ScrollSnapOffsetsInfo.

  • Shared/WebCoreArgumentCoders.h: Added EnumTraits for ScrollSnapStrictness.
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r277357 r277362  
     12021-05-12  Martin Robinson  <mrobinson@igalia.com>
     2
     3        REGRESSION(r277083): Proximity scroll snap is broken on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=225649
     5
     6        Reviewed by Simon Fraser.
     7
     8        No new tests. iOS does not have great support for the event sending test
     9        infrastructure used to test scroll snap.
     10
     11        * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
     12        (ArgumentCoder<FloatScrollSnapOffsetsInfo>::encode): Include the snap type when encoding ScrollSnapOffsetsInfo.
     13        (ArgumentCoder<FloatScrollSnapOffsetsInfo>::decode): Include the snap type when decoding ScrollSnapOffsetsInfo.
     14        * Shared/WebCoreArgumentCoders.h: Added EnumTraits for ScrollSnapStrictness.
     15
    1162021-05-11  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp

    r277093 r277362  
    551551    encoder << info.horizontalSnapOffsets;
    552552    encoder << info.verticalSnapOffsets;
     553    encoder << info.strictness;
    553554    encoder << info.snapAreas;
    554555}
     
    559560        return false;
    560561    if (!decoder.decode(info.verticalSnapOffsets))
     562        return false;
     563    if (!decoder.decode(info.strictness))
    561564        return false;
    562565    if (!decoder.decode(info.snapAreas))
  • trunk/Source/WebKit/Shared/WebCoreArgumentCoders.h

    r277313 r277362  
    10131013#endif
    10141014
     1015template<> struct EnumTraits<WebCore::ScrollSnapStrictness> {
     1016    using values = EnumValues<
     1017        WebCore::ScrollSnapStrictness,
     1018        WebCore::ScrollSnapStrictness::None,
     1019        WebCore::ScrollSnapStrictness::Proximity,
     1020        WebCore::ScrollSnapStrictness::Mandatory
     1021    >;
     1022};
     1023
    10151024} // namespace WTF
Note: See TracChangeset for help on using the changeset viewer.