bug 900975 - include font-smoothing setting in the nsFont::BaseEquals comparison. r=dbaron

This commit is contained in:
Jonathan Kew 2013-08-03 08:58:53 +01:00
parent 1fc0e2a754
commit 95d34d6bf0

View File

@ -115,7 +115,8 @@ bool nsFont::BaseEquals(const nsFont& aOther) const
(variantNumeric == aOther.variantNumeric) &&
(variantPosition == aOther.variantPosition) &&
(alternateValues == aOther.alternateValues) &&
(featureValueLookup == aOther.featureValueLookup)) {
(featureValueLookup == aOther.featureValueLookup) &&
(smoothing == aOther.smoothing)) {
return true;
}
return false;
@ -125,8 +126,7 @@ bool nsFont::Equals(const nsFont& aOther) const
{
if (BaseEquals(aOther) &&
(variant == aOther.variant) &&
(decorations == aOther.decorations) &&
(smoothing == aOther.smoothing)) {
(decorations == aOther.decorations)) {
return true;
}
return false;