WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 131618
[WK2 iOS] Scrolling to anchor links is broken
https://bugs.webkit.org/show_bug.cgi?id=131618
Summary
[WK2 iOS] Scrolling to anchor links is broken
Simon Fraser (smfr)
Reported
2014-04-14 08:52:07 PDT
[WK2 iOS] Scrolling to anchor links is broken
Attachments
Patch
(17.99 KB, patch)
2014-04-14 08:57 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(19.45 KB, patch)
2014-04-14 12:04 PDT
,
Simon Fraser (smfr)
thorton
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2014-04-14 08:57:11 PDT
Created
attachment 229285
[details]
Patch
Simon Fraser (smfr)
Comment 2
2014-04-14 12:04:57 PDT
Created
attachment 229296
[details]
Patch
WebKit Commit Bot
Comment 3
2014-04-14 12:05:59 PDT
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
Tim Horton
Comment 4
2014-04-14 12:37:11 PDT
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
Simon Fraser (smfr)
Comment 5
2014-04-14 12:50:54 PDT
https://trac.webkit.org/r167262
Benjamin Poulain
Comment 6
2014-04-14 13:26:47 PDT
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug