diff --git a/mozilla/layout/generic/nsFrame.cpp b/mozilla/layout/generic/nsFrame.cpp index fd488419012..ea3f45c18c5 100644 --- a/mozilla/layout/generic/nsFrame.cpp +++ b/mozilla/layout/generic/nsFrame.cpp @@ -587,7 +587,15 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn) } } } - + if (result) + { + // Prepare the block reflow engine + const nsStyleUserInterface* userinterface; + GetStyleData(eStyleStruct_UserInterface, + (const nsStyleStruct*&) userinterface); + if (userinterface) + result = userinterface->mUserSelect; + } return result; } diff --git a/mozilla/layout/html/base/src/nsFrame.cpp b/mozilla/layout/html/base/src/nsFrame.cpp index fd488419012..ea3f45c18c5 100644 --- a/mozilla/layout/html/base/src/nsFrame.cpp +++ b/mozilla/layout/html/base/src/nsFrame.cpp @@ -587,7 +587,15 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn) } } } - + if (result) + { + // Prepare the block reflow engine + const nsStyleUserInterface* userinterface; + GetStyleData(eStyleStruct_UserInterface, + (const nsStyleStruct*&) userinterface); + if (userinterface) + result = userinterface->mUserSelect; + } return result; }