mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
eb30fe2129
commit
9ca0e73265
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user