Bug 897105 - Part 1: Add RectTyped::operator== to allow use in IPDL structs. r=roc

This commit is contained in:
Corey Ford 2013-09-11 21:09:43 -07:00
parent 6e2bf125e3
commit 931b7f1c89

View File

@ -124,6 +124,12 @@ struct RectTyped :
RectTyped<UnknownUnits> ToUnknownRect() const {
return RectTyped<UnknownUnits>(this->x, this->y, this->width, this->height);
}
// This is here only to keep IPDL-generated code happy. DO NOT USE.
bool operator==(const RectTyped<units>& aRect) const
{
return RectTyped<units>::IsEqualEdges(aRect);
}
};
typedef RectTyped<UnknownUnits> Rect;