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:
Nicholas Nethercote
2015-11-12 15:37:18 -08:00
parent 21d0e06518
commit a9b04a8e78
6 changed files with 9 additions and 16 deletions

View File

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