Bug 1224403 (part 12) - Remove WidgetToScreenOffsetUntyped(). r=kats.
There are few enough calls now that using WidgetToScreenOffset() + ToUnknownPoint() is a better approach.
This commit is contained in:
@@ -717,7 +717,7 @@ AndroidGeckoEvent::MakeMultiTouchInput(nsIWidget* widget)
|
||||
return event;
|
||||
}
|
||||
|
||||
const nsIntPoint& offset = widget->WidgetToScreenOffsetUntyped();
|
||||
const nsIntPoint& offset = widget->WidgetToScreenOffset().ToUnknownPoint();
|
||||
event.mTouches.SetCapacity(endIndex - startIndex);
|
||||
for (int i = startIndex; i < endIndex; i++) {
|
||||
nsIntPoint point = Points()[i] - offset;
|
||||
|
||||
Reference in New Issue
Block a user