mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't have a default repaint interval of "never" for APZ animations. (bug 1152138, r=botond)
This commit is contained in:
parent
42f1c74f32
commit
bf68b2d55b
@ -22,8 +22,7 @@ class AsyncPanZoomAnimation {
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AsyncPanZoomAnimation)
|
||||
|
||||
public:
|
||||
explicit AsyncPanZoomAnimation(const TimeDuration& aRepaintInterval =
|
||||
TimeDuration::Forever())
|
||||
explicit AsyncPanZoomAnimation(const TimeDuration& aRepaintInterval)
|
||||
: mRepaintInterval(aRepaintInterval)
|
||||
{ }
|
||||
|
||||
|
@ -592,7 +592,8 @@ class ZoomAnimation: public AsyncPanZoomAnimation {
|
||||
public:
|
||||
ZoomAnimation(CSSPoint aStartOffset, CSSToParentLayerScale2D aStartZoom,
|
||||
CSSPoint aEndOffset, CSSToParentLayerScale2D aEndZoom)
|
||||
: mTotalDuration(TimeDuration::FromMilliseconds(gfxPrefs::APZZoomAnimationDuration()))
|
||||
: AsyncPanZoomAnimation(TimeDuration::Forever())
|
||||
, mTotalDuration(TimeDuration::FromMilliseconds(gfxPrefs::APZZoomAnimationDuration()))
|
||||
, mStartOffset(aStartOffset)
|
||||
, mStartZoom(aStartZoom)
|
||||
, mEndOffset(aEndOffset)
|
||||
@ -650,7 +651,8 @@ private:
|
||||
class OverscrollAnimation: public AsyncPanZoomAnimation {
|
||||
public:
|
||||
explicit OverscrollAnimation(AsyncPanZoomController& aApzc, const ParentLayerPoint& aVelocity)
|
||||
: mApzc(aApzc)
|
||||
: AsyncPanZoomAnimation(TimeDuration::Forever())
|
||||
, mApzc(aApzc)
|
||||
{
|
||||
mApzc.mX.SetVelocity(aVelocity.x);
|
||||
mApzc.mY.SetVelocity(aVelocity.y);
|
||||
|
Loading…
Reference in New Issue
Block a user