Bug 543497, Patch B: Fix "warning: suggest parentheses around comparison in operand of !=" in nsHTMLDocument.cpp. r=smaug

This commit is contained in:
Daniel Holbert 2010-02-06 13:33:53 -08:00
parent 4a9a1b3347
commit 020287d441

View File

@ -2984,7 +2984,7 @@ nsHTMLDocument::GetDesignMode(nsAString & aDesignMode)
void
nsHTMLDocument::MaybeEditingStateChanged()
{
if (mUpdateNestLevel == 0 && mContentEditableCount > 0 != IsEditingOn()) {
if (mUpdateNestLevel == 0 && (mContentEditableCount > 0) != IsEditingOn()) {
if (nsContentUtils::IsSafeToRunScript()) {
EditingStateChanged();
} else if (!mInDestructor) {
@ -3012,7 +3012,7 @@ nsHTMLDocument::ChangeContentEditableCount(nsIContent *aElement,
mContentEditableCount += aChange;
if (mParser ||
(mUpdateNestLevel > 0 && mContentEditableCount > 0 != IsEditingOn())) {
(mUpdateNestLevel > 0 && (mContentEditableCount > 0) != IsEditingOn())) {
return NS_OK;
}