зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230552 - Introduce a helper AsyncPanZoomController::CurrentInputBlock(). r=kats
--HG-- extra : commitid : tjvQ9vFjQG extra : rebase_source : ca1e6210602ebade929a1c2864a1c7de48bbd84b
This commit is contained in:
Родитель
3ec5bb5d99
Коммит
9753021fd9
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче