Bug 690962 - 'Remove useless assertion now that we use bool instead of PRBool'. r=dbaron.

This commit is contained in:
Ben Turner 2011-10-02 13:59:37 -07:00
parent d2872dfc1f
commit 638dee58a3

View File

@ -675,14 +675,12 @@ public:
bool GetBackgroundImageDraw() const { return mDrawImageBackground; }
void SetBackgroundImageDraw(bool aCanDraw)
{
NS_ASSERTION(!(aCanDraw & ~1), "Value must be true or false");
mDrawImageBackground = aCanDraw;
}
bool GetBackgroundColorDraw() const { return mDrawColorBackground; }
void SetBackgroundColorDraw(bool aCanDraw)
{
NS_ASSERTION(!(aCanDraw & ~1), "Value must be true or false");
mDrawColorBackground = aCanDraw;
}
@ -725,7 +723,6 @@ public:
*/
void SetVisualMode(bool aIsVisual)
{
NS_ASSERTION(!(aIsVisual & ~1), "Value must be true or false");
mIsVisual = aIsVisual;
}
@ -757,7 +754,6 @@ public:
*/
void SetIsRenderingOnlySelection(bool aResult)
{
NS_ASSERTION(!(aResult & ~1), "Value must be true or false");
mIsRenderingOnlySelection = aResult;
}