diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index b8e7106f2625..9601f12e0b75 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -601,7 +601,7 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn) mParent->GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct*&)userinterface); } } - if (userinterface->mUserSelect == NS_STYLE_USER_SELECT_NONE) { + if (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE) { result = PR_FALSE; isOkToTurnOn = PR_FALSE; } diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index b8e7106f2625..9601f12e0b75 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -601,7 +601,7 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn) mParent->GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct*&)userinterface); } } - if (userinterface->mUserSelect == NS_STYLE_USER_SELECT_NONE) { + if (userinterface->mUserSelect != NS_STYLE_USER_SELECT_NONE) { result = PR_FALSE; isOkToTurnOn = PR_FALSE; }