зеркало из https://github.com/mozilla/gecko-dev.git
Bug 897105 - Part 1: Add RectTyped::operator== to allow use in IPDL structs. r=roc
This commit is contained in:
Родитель
848b25298d
Коммит
bcbedb574b
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче