mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 543497, Patch B: Fix "warning: suggest parentheses around comparison in operand of !=" in nsHTMLDocument.cpp. r=smaug
This commit is contained in:
parent
4a9a1b3347
commit
020287d441
@ -2984,7 +2984,7 @@ nsHTMLDocument::GetDesignMode(nsAString & aDesignMode)
|
|||||||
void
|
void
|
||||||
nsHTMLDocument::MaybeEditingStateChanged()
|
nsHTMLDocument::MaybeEditingStateChanged()
|
||||||
{
|
{
|
||||||
if (mUpdateNestLevel == 0 && mContentEditableCount > 0 != IsEditingOn()) {
|
if (mUpdateNestLevel == 0 && (mContentEditableCount > 0) != IsEditingOn()) {
|
||||||
if (nsContentUtils::IsSafeToRunScript()) {
|
if (nsContentUtils::IsSafeToRunScript()) {
|
||||||
EditingStateChanged();
|
EditingStateChanged();
|
||||||
} else if (!mInDestructor) {
|
} else if (!mInDestructor) {
|
||||||
@ -3012,7 +3012,7 @@ nsHTMLDocument::ChangeContentEditableCount(nsIContent *aElement,
|
|||||||
mContentEditableCount += aChange;
|
mContentEditableCount += aChange;
|
||||||
|
|
||||||
if (mParser ||
|
if (mParser ||
|
||||||
(mUpdateNestLevel > 0 && mContentEditableCount > 0 != IsEditingOn())) {
|
(mUpdateNestLevel > 0 && (mContentEditableCount > 0) != IsEditingOn())) {
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user