Bug 130809

Summary: Hook up -webkit-overflow-scrolling:touch for iOS WK2
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, cmarcelo, commit-queue, esprehn+autocc, glenn, jamesr, kondapallykalyan, luiz, sam, simon.fraser, thorton, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Description Simon Fraser (smfr) 2014-03-26 18:31:12 PDT
Hook up -webkit-overflow-scrolling:touch for iOS WK2
Comment 1 Simon Fraser (smfr) 2014-03-26 18:34:53 PDT
Created attachment 227905 [details]
Patch
Comment 2 Tim Horton 2014-03-26 18:41:21 PDT
Comment on attachment 227905 [details]
Patch

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

> Source/WebKit2/UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:61
> +        UIScrollView *scrollView = (UIScrollView *)[scrollLayer() delegate];

tiny eww

> Source/WebKit2/UIProcess/ios/RemoteLayerTreeHostIOS.mm:94
> +            layerOrView = adoptNS([[UIScrollView alloc] initWithFrame:CGRectZero]);

I vaguely remember being chastised for using initWithFrame:CGRectZero instead of init in the recent past, but I don't mind either way.
Comment 3 Simon Fraser (smfr) 2014-03-26 19:17:00 PDT
https://trac.webkit.org/r166333
Comment 4 Alexey Proskuryakov 2014-03-26 23:30:10 PDT
This broke a number of tests on Mac:

  platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/four-bars.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html [ Failure ]
  platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html [ Failure ]
  platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html [ Failure ]
Comment 5 Simon Fraser (smfr) 2014-03-26 23:38:48 PDT
Looking
Comment 6 Simon Fraser (smfr) 2014-03-26 23:51:46 PDT
(In reply to comment #4)
> This broke a number of tests on Mac:

Fixed in http://trac.webkit.org/changeset/166348