[Webkit-unassigned] [Bug 112278] [BlackBerry] Add Proximity Detector.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 13 13:32:35 PDT 2013


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





--- Comment #7 from Rob Buis <rwlbuis at gmail.com>  2013-03-13 13:34:59 PST ---
(From update of attachment 192983)
View in context: https://bugs.webkit.org/attachment.cgi?id=192983&action=review

> Source/WebKit/blackberry/WebKitSupport/ProximityDetector.cpp:104
> +        bool equalPriorityAndCloser = priority == bestPriority && sqrt((double)contentPos.distanceSquaredToPoint(bestPoint)) > sqrt((double)contentPos.distanceSquaredToPoint(curRect.location()))

I think parentheses would make this more readable, plus you can discard both sqrt in this case.

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