Bug 198764 - LayoutTests/fast/events/touch/ios/double-tap-for-double-click* test cases are failing
Summary: LayoutTests/fast/events/touch/ios/double-tap-for-double-click* test cases are...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-11 13:07 PDT by zalan
Modified: 2019-06-12 06:30 PDT (History)
6 users (show)

See Also:


Attachments
Patch (31.35 KB, patch)
2019-06-11 13:16 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (32.13 KB, patch)
2019-06-11 14:53 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-06-11 13:07:02 PDT
<rdar://problem/51035459>
Comment 1 zalan 2019-06-11 13:16:32 PDT
Created attachment 371871 [details]
Patch
Comment 2 Wenson Hsieh 2019-06-11 13:28:45 PDT
Comment on attachment 371871 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=371871&action=review

r=mews

> Source/WebKit/Shared/WebPageCreationParameters.cpp:295
> +    if (!decoder.decode(parameters.doubleClickForDoubleTapDelay))

Nit - doubleTapForDoubleClick* sounds a bit more appropriate.

> Source/WebKit/Shared/WebPageCreationParameters.h:161
> +    double doubleClickForDoubleTapDelay { 350 };

Nit - Seconds

> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:809
> +    auto distanceBetweenTaps = sqrtf(pow(m_potentialTapLocation.x() - m_lastCommittedTapLocation.x(), 2) + pow(m_potentialTapLocation.y() - m_lastCommittedTapLocation.y(), 2));

Nit - you could probably just subtract the points and use diagonalLengthSquared.
Comment 3 zalan 2019-06-11 14:53:15 PDT
Created attachment 371881 [details]
Patch
Comment 4 WebKit Commit Bot 2019-06-11 21:13:42 PDT
Comment on attachment 371881 [details]
Patch

Clearing flags on attachment: 371881

Committed r246347: <https://trac.webkit.org/changeset/246347>
Comment 5 WebKit Commit Bot 2019-06-11 21:13:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-06-11 21:14:21 PDT
<rdar://problem/51654009>
Comment 7 Alexey Proskuryakov 2019-06-12 02:17:49 PDT
Impressive!

Do any TestExpectations files need to be updated? Can’t check them now myself.
Comment 8 zalan 2019-06-12 06:30:47 PDT
(In reply to Alexey Proskuryakov from comment #7)
> Impressive!
> 
> Do any TestExpectations files need to be updated? Can’t check them now
> myself.
Oh, right! I'll take a look and will update them.