We need WK2 API to disable rubber-banding. <rdar://problem/15364278>
Created attachment 229171 [details] Patch
Comment on attachment 229171 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=229171&action=review > Source/WebKit2/UIProcess/API/C/WKPage.h:185 > +WK_EXPORT bool WKPageVerticalRubberBandingIsDisabled(WKPageRef); > +WK_EXPORT void WKPageDisableVerticalRubberBanding(WKPageRef, bool disableVerticalRubberBanding); > +WK_EXPORT bool WKPageHorizontalRubberBandingIsDisabled(WKPageRef); > +WK_EXPORT void WKPageDisableHorizontalRubberBanding(WKPageRef, bool disableHorizontalRubberBanding); It would be slightly cleaner to have the API in positive terms (enabled, not disabled) I think. > Source/WebKit2/WebProcess/WebPage/WebPage.h:363 > + void disableVerticalRubberBanding(bool); > + void disableHorizontalRubberBanding(bool); I think setDisabled would be better terminology (or setEnabled if you want a positive term).
Thanks, Simon! I switch the the positive terminology and the 'set' language. http://trac.webkit.org/changeset/167172