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.
rdar://problem/29493285
Created attachment 296191 [details] Patch
Created attachment 296217 [details] Patch
ios-sim is not mine
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?
(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.
Comment on attachment 296217 [details] Patch Looks good.
https://trac.webkit.org/changeset/209405