[Webkit-unassigned] [Bug 132372] Phone number data detection UI is offset for iframes, pages with topContentInset

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 29 20:45:15 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132372





--- Comment #4 from Simon Fraser (smfr) <simon.fraser at apple.com>  2014-04-29 20:45:37 PST ---
(From update of attachment 230452)
View in context: https://bugs.webkit.org/attachment.cgi?id=230452&action=review

> Source/WebKit2/WebProcess/WebPage/mac/TelephoneNumberOverlayControllerMac.mm:77
> +        IntPoint frameOffset(frame->view()->scrollOffset().width(), frame->view()->scrollOffset().height());
> +        offset.move(frameOffset.x(), frameOffset.y());
> +        offset = frame->view()->contentsToRootView(offset);

contentsToRootView() already subtracts the scrollOffset, so I'm not sure why you have to do it manually here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list