Bug 1230552 - Introduce a helper AsyncPanZoomController::CurrentInputBlock(). r=kats

--HG--
extra : commitid : tjvQ9vFjQG
extra : rebase_source : ca1e6210602ebade929a1c2864a1c7de48bbd84b
This commit is contained in:
Botond Ballo 2015-12-12 13:03:52 -05:00
Родитель 3ec5bb5d99
Коммит 9753021fd9
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -2183,7 +2183,7 @@ void AsyncPanZoomController::HandlePanningWithTouchAction(double aAngle) {
void AsyncPanZoomController::HandlePanning(double aAngle) {
ReentrantMonitorAutoEnter lock(mMonitor);
RefPtr<const OverscrollHandoffChain> overscrollHandoffChain =
GetInputQueue()->CurrentBlock()->GetOverscrollHandoffChain();
CurrentInputBlock()->GetOverscrollHandoffChain();
bool canScrollHorizontal = !mX.IsAxisLocked() &&
overscrollHandoffChain->CanScrollInDirection(this, Layer::HORIZONTAL);
bool canScrollVertical = !mY.IsAxisLocked() &&
@ -3432,6 +3432,12 @@ void AsyncPanZoomController::ZoomToRect(CSSRect aRect) {
}
}
CancelableBlockState*
AsyncPanZoomController::CurrentInputBlock() const
{
return GetInputQueue()->CurrentBlock();
}
TouchBlockState*
AsyncPanZoomController::CurrentTouchBlock() const
{

Просмотреть файл

@ -824,6 +824,7 @@ private:
void CancelAnimationAndGestureState();
RefPtr<InputQueue> mInputQueue;
CancelableBlockState* CurrentInputBlock() const;
TouchBlockState* CurrentTouchBlock() const;
bool HasReadyTouchBlock() const;