Bug 1610731 - Followup to fix IPC for RectAbsolute. r=ktaeleman,botond

The parameters to the middle two arguments of SetBox were flipped, causing
RectAbsolute to get improperly swizzled over IPC.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2020-04-08 21:06:56 +00:00
parent eb30fe2129
commit 9ca0e73265

View File

@ -575,21 +575,21 @@ struct ParamTraits<mozilla::gfx::RectAbsoluteTyped<T>> {
static void Write(Message* msg, const paramType& param) {
WriteParam(msg, param.Left());
WriteParam(msg, param.Right());
WriteParam(msg, param.Top());
WriteParam(msg, param.Right());
WriteParam(msg, param.Bottom());
}
static bool Read(const Message* msg, PickleIterator* iter,
paramType* result) {
auto l = result->Left();
auto r = result->Right();
auto t = result->Top();
auto r = result->Right();
auto b = result->Bottom();
bool retVal = (ReadParam(msg, iter, &l) && ReadParam(msg, iter, &r) &&
ReadParam(msg, iter, &t) && ReadParam(msg, iter, &b));
result->SetBox(l, r, t, b);
bool retVal = (ReadParam(msg, iter, &l) && ReadParam(msg, iter, &t) &&
ReadParam(msg, iter, &r) && ReadParam(msg, iter, &b));
result->SetBox(l, t, r, b);
return retVal;
}
};