diff options
author | athenian200 <athenian200@outlook.com> | 2020-01-16 14:07:04 -0600 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-01-16 14:07:04 -0600 |
commit | 42e48167713abfa3c1f11274179b489bb6369b57 (patch) | |
tree | 31ceba32e850ac856b09838c89e61e27df1538f0 /layout/forms/nsImageControlFrame.cpp | |
parent | e4c4c20e7e539d891c3f10b6ef5608c08699c077 (diff) | |
download | UXP-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/nsImageControlFrame.cpp')
-rw-r--r-- | layout/forms/nsImageControlFrame.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/layout/forms/nsImageControlFrame.cpp b/layout/forms/nsImageControlFrame.cpp index 212fa9356..8aef41538 100644 --- a/layout/forms/nsImageControlFrame.cpp +++ b/layout/forms/nsImageControlFrame.cpp @@ -150,15 +150,9 @@ nsImageControlFrame::HandleEvent(nsPresContext* aPresContext, return NS_OK; } - // do we have user-input style? - const nsStyleUserInterface* uiStyle = StyleUserInterface(); - if (uiStyle->mUserInput == StyleUserInput::None || - uiStyle->mUserInput == StyleUserInput::Disabled) { + if (IsContentDisabled()) { return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus); } - if (mContent->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled)) { // XXX cache disabled - return NS_OK; - } *aEventStatus = nsEventStatus_eIgnore; |