WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152189
_touchEventRegions should return regions in the view's coordinates
https://bugs.webkit.org/show_bug.cgi?id=152189
Summary
_touchEventRegions should return regions in the view's coordinates
Beth Dakin
Reported
2015-12-11 14:33:55 PST
_touchEventRegions should return regions in the view's coordinates
rdar://problem/23188605
Attachments
Patch
(6.44 KB, patch)
2015-12-11 14:43 PST
,
Beth Dakin
mitz: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2015-12-11 14:43:51 PST
Created
attachment 267191
[details]
Patch
mitz
Comment 2
2015-12-11 14:57:42 PST
Comment on
attachment 267191
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267191&action=review
> Source/WebKit/mac/WebView/WebView.mm:3745 > + IntRect viewRect = IntRect([[[[self _selectedOrMainFrame] frameView] documentView] convertRect:rect toView:self]);
I think this should always be the main frame.
Simon Fraser (smfr)
Comment 3
2015-12-11 15:28:23 PST
Comment on
attachment 267191
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267191&action=review
> Source/WebKit/mac/WebView/WebView.mm:3745 > + IntRect viewRect = IntRect([[[[self _selectedOrMainFrame] frameView] documentView] convertRect:rect toView:self]);
You should fetch [[[[self _selectedOrMainFrame] frameView] documentView] outside the loop, rather than calling it once per rect (possibly thousands of them).
Beth Dakin
Comment 4
2015-12-11 17:23:03 PST
Thank you!
http://trac.webkit.org/changeset/193997
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