[WK2 iOS] Scrolling to anchor links is broken
Created attachment 229285 [details] Patch
Created attachment 229296 [details] Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment on attachment 229296 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=229296&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:549 > + WebCore::FloatPoint scaledOffset = contentOffset; Can we have a better modifier than "scaled
https://trac.webkit.org/r167262
Comment on attachment 229296 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=229296&action=review I would have preferred a unified scrolling code :( > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:554 > + UIEdgeInsets inset = [_scrollView contentInset]; > + scaledOffset += WebCore::FloatSize(-inset.left, -inset.top); The top-left is relative to the obscuredInsets, not the contentInsets.