Bug 1349750 - Have AsyncDragMetrics use ScrollDirection instead of rolling its own direction enum. r=kats

MozReview-Commit-ID: FKK4OBx12oa
This commit is contained in:
Botond Ballo
2017-05-10 15:22:04 -04:00
parent 654c075f22
commit f740ce1992
5 changed files with 21 additions and 37 deletions

View File

@@ -1090,8 +1090,8 @@ nsSliderFrame::StartAPZDrag(WidgetGUIEvent* aEvent)
AsyncDragMetrics dragMetrics(scrollTargetId, presShellId, inputblockId,
NSAppUnitsToFloatPixels(mDragStart,
float(AppUnitsPerCSSPixel())),
isHorizontal ? AsyncDragMetrics::HORIZONTAL :
AsyncDragMetrics::VERTICAL);
isHorizontal ? ScrollDirection::HORIZONTAL :
ScrollDirection::VERTICAL);
if (!nsLayoutUtils::HasDisplayPort(scrollableContent)) {
return;