зеркало из https://github.com/mozilla/gecko-dev.git
Bug 929513 Part 8: Remove IPDL support for passing gfxSize r=nical
This commit is contained in:
Родитель
8023168d6f
Коммит
f2e4738722
|
@ -29,7 +29,6 @@ include "mozilla/layers/CompositorTypes.h";
|
|||
|
||||
using IPC::Principal;
|
||||
using gfxMatrix;
|
||||
using gfxSize;
|
||||
using CSSRect;
|
||||
using mozilla::layers::FrameMetrics;
|
||||
using FrameMetrics::ViewID;
|
||||
|
|
|
@ -119,27 +119,6 @@ struct ParamTraits<gfxPoint3D>
|
|||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct ParamTraits<gfxSize>
|
||||
{
|
||||
typedef gfxSize paramType;
|
||||
|
||||
static void Write(Message* aMsg, const paramType& aParam)
|
||||
{
|
||||
WriteParam(aMsg, aParam.width);
|
||||
WriteParam(aMsg, aParam.height);
|
||||
}
|
||||
|
||||
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
||||
{
|
||||
if (ReadParam(aMsg, aIter, &aResult->width) &&
|
||||
ReadParam(aMsg, aIter, &aResult->height))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct ParamTraits<gfxRect>
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче