mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Bug 91478. Don't incorporate mFlags when computing difference between two fonts. r=attinasi, sr=hyatt.
This commit is contained in:
parent
6430792e53
commit
810f67dd7a
@ -209,14 +209,11 @@ nsStyleFont::Destroy(nsIPresContext* aContext) {
|
||||
|
||||
PRInt32 nsStyleFont::CalcDifference(const nsStyleFont& aOther) const
|
||||
{
|
||||
if (mFlags == aOther.mFlags) {
|
||||
PRInt32 impact = CalcFontDifference(mFont, aOther.mFont);
|
||||
if (impact < NS_STYLE_HINT_REFLOW) {
|
||||
impact = CalcFontDifference(mFixedFont, aOther.mFixedFont);
|
||||
}
|
||||
return impact;
|
||||
}
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
PRInt32 impact = CalcFontDifference(mFont, aOther.mFont);
|
||||
if (impact < NS_STYLE_HINT_REFLOW) {
|
||||
impact = CalcFontDifference(mFixedFont, aOther.mFixedFont);
|
||||
}
|
||||
return impact;
|
||||
}
|
||||
|
||||
PRInt32 nsStyleFont::CalcFontDifference(const nsFont& aFont1, const nsFont& aFont2)
|
||||
|
@ -209,14 +209,11 @@ nsStyleFont::Destroy(nsIPresContext* aContext) {
|
||||
|
||||
PRInt32 nsStyleFont::CalcDifference(const nsStyleFont& aOther) const
|
||||
{
|
||||
if (mFlags == aOther.mFlags) {
|
||||
PRInt32 impact = CalcFontDifference(mFont, aOther.mFont);
|
||||
if (impact < NS_STYLE_HINT_REFLOW) {
|
||||
impact = CalcFontDifference(mFixedFont, aOther.mFixedFont);
|
||||
}
|
||||
return impact;
|
||||
}
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
PRInt32 impact = CalcFontDifference(mFont, aOther.mFont);
|
||||
if (impact < NS_STYLE_HINT_REFLOW) {
|
||||
impact = CalcFontDifference(mFixedFont, aOther.mFixedFont);
|
||||
}
|
||||
return impact;
|
||||
}
|
||||
|
||||
PRInt32 nsStyleFont::CalcFontDifference(const nsFont& aFont1, const nsFont& aFont2)
|
||||
|
Loading…
Reference in New Issue
Block a user