summaryrefslogtreecommitdiffstats
path: root/layout/forms/nsFormControlFrame.cpp
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:16:31 +0200
commit563dc95cdbdd94496360f14fc277c4b8fc79bbab (patch)
tree8c0dd0fb0fc73264d0a513f06497155071c598d1 /layout/forms/nsFormControlFrame.cpp
parent7e59ac9036ae2cbb91ff216e50eac75b9588557a (diff)
downloadUXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.gz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.lz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.tar.xz
UXP-563dc95cdbdd94496360f14fc277c4b8fc79bbab.zip
Issue #1356 - Remove -moz-user-input disabled to improve event handling.
Diffstat (limited to 'layout/forms/nsFormControlFrame.cpp')
-rw-r--r--layout/forms/nsFormControlFrame.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/layout/forms/nsFormControlFrame.cpp b/layout/forms/nsFormControlFrame.cpp
index 4ee62acbf..8dbe564dd 100644
--- a/layout/forms/nsFormControlFrame.cpp
+++ b/layout/forms/nsFormControlFrame.cpp
@@ -183,10 +183,8 @@ nsFormControlFrame::HandleEvent(nsPresContext* aPresContext,
WidgetGUIEvent* aEvent,
nsEventStatus* aEventStatus)
{
- // Check for user-input:none style
- const nsStyleUserInterface* uiStyle = StyleUserInterface();
- if (uiStyle->mUserInput == StyleUserInput::None ||
- uiStyle->mUserInput == StyleUserInput::Disabled) {
+ // Check for disabled content so that selection works properly (?).
+ if (IsContentDisabled()) {
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
return NS_OK;