summaryrefslogtreecommitdiffstats
path: root/layout/forms/nsComboboxControlFrame.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/nsComboboxControlFrame.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/nsComboboxControlFrame.cpp')
-rw-r--r--layout/forms/nsComboboxControlFrame.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp
index 5a9438939..78185616f 100644
--- a/layout/forms/nsComboboxControlFrame.cpp
+++ b/layout/forms/nsComboboxControlFrame.cpp
@@ -1165,9 +1165,7 @@ nsComboboxControlFrame::HandleEvent(nsPresContext* aPresContext,
// If we have style that affects how we are selected, feed event down to
// nsFrame::HandleEvent so that selection takes place when appropriate.
- const nsStyleUserInterface* uiStyle = StyleUserInterface();
- if (uiStyle->mUserInput == StyleUserInput::None ||
- uiStyle->mUserInput == StyleUserInput::Disabled) {
+ if (IsContentDisabled()) {
return nsBlockFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
return NS_OK;