Bug 1333482 part 2 - [css-ui] Change all consumers of StyleDisplay::mAppearance to use the accessor UsedAppearance() instead, and make mAppearance/mMozAppearance private. r=dholbert
MozReview-Commit-ID: 8JwLsY1CLDJ
This commit is contained in:
committed by
Bobby Holley
parent
8297bf43a1
commit
4729a520a5
@@ -285,11 +285,11 @@ nsProgressFrame::ShouldUseNativeStyle() const
|
||||
// - both frames use the native appearance;
|
||||
// - neither frame has author specified rules setting the border or the
|
||||
// background.
|
||||
return StyleDisplay()->mAppearance == NS_THEME_PROGRESSBAR &&
|
||||
return StyleDisplay()->UsedAppearance() == NS_THEME_PROGRESSBAR &&
|
||||
!PresContext()->HasAuthorSpecifiedRules(this,
|
||||
NS_AUTHOR_SPECIFIED_BORDER | NS_AUTHOR_SPECIFIED_BACKGROUND) &&
|
||||
barFrame &&
|
||||
barFrame->StyleDisplay()->mAppearance == NS_THEME_PROGRESSCHUNK &&
|
||||
barFrame->StyleDisplay()->UsedAppearance() == NS_THEME_PROGRESSCHUNK &&
|
||||
!PresContext()->HasAuthorSpecifiedRules(barFrame,
|
||||
NS_AUTHOR_SPECIFIED_BORDER | NS_AUTHOR_SPECIFIED_BACKGROUND);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user