Bug 773626; mask sharing hash functions. r=roc

This commit is contained in:
Nicholas Cameron 2012-07-16 06:44:15 -04:00
parent 9898c93b7e
commit cd536b1d55

View File

@ -90,7 +90,7 @@ public:
PLDHashNumber Hash() const
{
PLDHashNumber hash = HashBytes(&mRect.x, 4*sizeof(gfxFloat));
AddToHash(hash, HashBytes(mRadii, 8*sizeof(gfxFloat)));
hash = AddToHash(hash, HashBytes(mRadii, 8*sizeof(gfxFloat)));
return hash;
}
@ -130,7 +130,7 @@ public:
PLDHashNumber hash = 0;
for (PRUint32 i = 0; i < mRoundedClipRects.Length(); ++i) {
AddToHash(hash, mRoundedClipRects[i].Hash());
hash = AddToHash(hash, mRoundedClipRects[i].Hash());
}
return hash;