RESOLVED FIXED165403
Almost half-second stall scrolling apple.com because of synchronous getPositionInformation
https://bugs.webkit.org/show_bug.cgi?id=165403
Summary Almost half-second stall scrolling apple.com because of synchronous getPositi...
Tim Horton
Reported 2016-12-05 12:54:43 PST
getPositionInformation often does a lot of work that it doesn't need to, and is called synchronously from the UI process. We should try to minimize the work it does to only what is needed, especially when it comes to snapshotting Web content, which is very expensive.
Attachments
Patch (49.63 KB, patch)
2016-12-05 14:37 PST, Tim Horton
no flags
Patch (51.87 KB, patch)
2016-12-05 16:43 PST, Tim Horton
enrica: review+
Tim Horton
Comment 1 2016-12-05 14:37:23 PST
Tim Horton
Comment 2 2016-12-05 14:37:43 PST
Tim Horton
Comment 3 2016-12-05 16:43:11 PST
Tim Horton
Comment 4 2016-12-05 17:02:59 PST
ios-sim is not mine
Alex Christensen
Comment 5 2016-12-06 09:25:46 PST
Comment on attachment 296217 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=296217&action=review > Source/WebKit2/Shared/AssistedNodeInformation.h:122 > -#endif // InteractionInformationAtPosition_h > +#endif // AssistedNodeInformation_h As long as we're changing this, why not pragma once?
Tim Horton
Comment 6 2016-12-06 09:34:51 PST
(In reply to comment #5) > Comment on attachment 296217 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=296217&action=review > > > Source/WebKit2/Shared/AssistedNodeInformation.h:122 > > -#endif // InteractionInformationAtPosition_h > > +#endif // AssistedNodeInformation_h > > As long as we're changing this, why not pragma once? Heh, I did it in the other files but not this one.
Enrica Casucci
Comment 7 2016-12-06 10:09:21 PST
Comment on attachment 296217 [details] Patch Looks good.
Tim Horton
Comment 8 2016-12-06 10:25:13 PST
Note You need to log in before you can comment on or make changes to this bug.