[Webkit-unassigned] [Bug 73397] [BlackBerry] Upstream BlackBerry porting of pluginView
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 15 19:11:49 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=73397
Daniel Bates <dbates at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #119167|review? |review+
Flag| |
--- Comment #14 from Daniel Bates <dbates at webkit.org> 2011-12-15 19:11:49 PST ---
(From update of attachment 119167)
View in context: https://bugs.webkit.org/attachment.cgi?id=119167&action=review
> Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp:532
> + npTouchEvent.points[i].touchId = touchItem->identifier();
> + npTouchEvent.points[i].clientX = touchItem->pageX() - frameRect().x();
> + npTouchEvent.points[i].clientY = touchItem->pageY() - frameRect().y();
> + npTouchEvent.points[i].screenX = touchItem->screenX();
> + npTouchEvent.points[i].screenY = touchItem->screenY();
> + npTouchEvent.points[i].pageX = touchItem->pageX();
> + npTouchEvent.points[i].pageY = touchItem->pageY();
Although the compiler will probably cache npTouchEvent.points, you may want to consider dereferencing touchPoints (i.e. touchPoints[i]) instead of dereferencing points and then dereferencing the ith point. That is, I would have written these lines as:
touchPoints[i]. touchId = = touchItem->identifier();
touchPoints[i].clientX = touchItem->pageX() - frameRect().x();
...
touchPoints[i].pageY = touchItem->pageY();
--
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