[Webkit-unassigned] [Bug 40197] Enhance the hit testing to take a rectangle instead of a point

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 8 06:22:51 PDT 2010


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





--- Comment #39 from Antonio Gomes <tonikitoo at webkit.org>  2010-07-08 06:22:50 PST ---
(In reply to comment #38)
> (From update of attachment 60772 [details])
> How much are HitTestResults copied?  I think we try to avoid copying them, but we'll definitely get more expensive with having to copy m_rawNodeList now.'

In the common case (current point based hit test) there is no behavior change at all. So it will be copied as much as it's being copied now (so same cost plus the cost of copying an empty ListHashSet). Is that empty object your concern? If so, I'd be glad to measure any possible perf regression on it.

For the rect based hit test case we are adding, we are not copying HitTestResult objects, but using an operation we called 'append'. e.g. in x.append(y) the listhashset of y is appended to x's. O(n) cost.

Let me know if I misunderstood your concern.

-- 
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