Bug 1601936. Ensure ScrollWheelInput::mAPZAction is transferred over ipc. r=botond

https://hg.mozilla.org/mozilla-central/rev/cb713d188609 (bug 1458063) added mAPZAction to ScrollWheelInput but didn't add the code to transfer it over ipc.

Differential Revision: https://phabricator.services.mozilla.com/D56182

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Timothy Nikkel 2019-12-06 16:56:36 +00:00
Родитель be0074e600
Коммит 26ba83c620
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -1353,6 +1353,13 @@ struct ParamTraits<mozilla::WheelDeltaAdjustmentStrategy>
mozilla::WheelDeltaAdjustmentStrategy(0),
mozilla::WheelDeltaAdjustmentStrategy::eSentinel> {};
template <>
struct ParamTraits<mozilla::layers::APZWheelAction>
: public ContiguousEnumSerializerInclusive<
mozilla::layers::APZWheelAction,
mozilla::layers::APZWheelAction::Scroll,
mozilla::layers::kHighestAPZWheelAction> {};
template <>
struct ParamTraits<mozilla::ScrollWheelInput> {
typedef mozilla::ScrollWheelInput paramType;
@ -1375,6 +1382,7 @@ struct ParamTraits<mozilla::ScrollWheelInput> {
WriteParam(aMsg, aParam.mIsMomentum);
WriteParam(aMsg, aParam.mAllowToOverrideSystemScrollSpeed);
WriteParam(aMsg, aParam.mWheelDeltaAdjustmentStrategy);
WriteParam(aMsg, aParam.mAPZAction);
}
static bool Read(const Message* aMsg, PickleIterator* aIter,
@ -1396,7 +1404,8 @@ struct ParamTraits<mozilla::ScrollWheelInput> {
ReadParam(aMsg, aIter, &aResult->mIsMomentum) &&
ReadParam(aMsg, aIter,
&aResult->mAllowToOverrideSystemScrollSpeed) &&
ReadParam(aMsg, aIter, &aResult->mWheelDeltaAdjustmentStrategy);
ReadParam(aMsg, aIter, &aResult->mWheelDeltaAdjustmentStrategy) &&
ReadParam(aMsg, aIter, &aResult->mAPZAction);
}
};