summaryrefslogtreecommitdiffstats
path: root/layout/forms/nsListControlFrame.cpp
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
committerathenian200 <athenian200@outlook.com>2020-01-16 14:07:04 -0600
commit42e48167713abfa3c1f11274179b489bb6369b57 (patch)
tree31ceba32e850ac856b09838c89e61e27df1538f0 /layout/forms/nsListControlFrame.cpp
parente4c4c20e7e539d891c3f10b6ef5608c08699c077 (diff)
downloadUXP-42e48167713abfa3c1f11274179b489bb6369b57.tar
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.gz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.lz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.tar.xz
UXP-42e48167713abfa3c1f11274179b489bb6369b57.zip
Issue #1356 - Remove -moz-user-input disabled to improve event handling.
Diffstat (limited to 'layout/forms/nsListControlFrame.cpp')
-rw-r--r--layout/forms/nsListControlFrame.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp
index cc5f37f9a..58e81039f 100644
--- a/layout/forms/nsListControlFrame.cpp
+++ b/layout/forms/nsListControlFrame.cpp
@@ -920,16 +920,11 @@ nsListControlFrame::HandleEvent(nsPresContext* aPresContext,
if (nsEventStatus_eConsumeNoDefault == *aEventStatus)
return NS_OK;
- // do we have style that affects how we are selected?
- // do we have user-input style?
- const nsStyleUserInterface* uiStyle = StyleUserInterface();
- if (uiStyle->mUserInput == StyleUserInput::None ||
- uiStyle->mUserInput == StyleUserInput::Disabled) {
+ // disabled state affects how we're selected, but we don't want to go through
+ // nsHTMLScrollFrame if we're disabled.
+ if (IsContentDisabled()) {
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
- EventStates eventStates = mContent->AsElement()->State();
- if (eventStates.HasState(NS_EVENT_STATE_DISABLED))
- return NS_OK;
return nsHTMLScrollFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}