mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 984761 - Add FilterPrimitiveDescription::operator==. r=roc
This commit is contained in:
parent
46966112cf
commit
12b3f841f0
@ -1568,6 +1568,27 @@ FilterPrimitiveDescription::operator=(const FilterPrimitiveDescription& aOther)
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool
|
||||
FilterPrimitiveDescription::operator==(const FilterPrimitiveDescription& aOther) const
|
||||
{
|
||||
return mType == aOther.mType &&
|
||||
mFilterPrimitiveSubregion.IsEqualInterior(aOther.mFilterPrimitiveSubregion) &&
|
||||
mOutputColorSpace == aOther.mOutputColorSpace &&
|
||||
mIsTainted == aOther.mIsTainted &&
|
||||
mInputPrimitives == aOther.mInputPrimitives &&
|
||||
mInputColorSpaces == aOther.mInputColorSpaces &&
|
||||
mAttributes == aOther.mAttributes;
|
||||
}
|
||||
|
||||
// FilterDescription
|
||||
|
||||
bool
|
||||
FilterDescription::operator==(const FilterDescription& aOther) const
|
||||
{
|
||||
return mFilterSpaceBounds.IsEqualInterior(aOther.mFilterSpaceBounds) &&
|
||||
mPrimitives == aOther.mPrimitives;
|
||||
}
|
||||
|
||||
// AttributeMap
|
||||
|
||||
// A class that wraps different types for easy storage in a hashtable. Only
|
||||
|
@ -337,6 +337,12 @@ public:
|
||||
mOutputColorSpace = aColorSpace;
|
||||
}
|
||||
|
||||
bool operator==(const FilterPrimitiveDescription& aOther) const;
|
||||
bool operator!=(const FilterPrimitiveDescription& aOther) const
|
||||
{
|
||||
return !(*this == aOther);
|
||||
}
|
||||
|
||||
private:
|
||||
PrimitiveType mType;
|
||||
AttributeMap mAttributes;
|
||||
@ -360,6 +366,12 @@ struct FilterDescription MOZ_FINAL {
|
||||
, mFilterSpaceBounds(aFilterSpaceBounds)
|
||||
{}
|
||||
|
||||
bool operator==(const FilterDescription& aOther) const;
|
||||
bool operator!=(const FilterDescription& aOther) const
|
||||
{
|
||||
return !(*this == aOther);
|
||||
}
|
||||
|
||||
nsTArray<FilterPrimitiveDescription> mPrimitives;
|
||||
IntRect mFilterSpaceBounds;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user