diff options
author | Moonchild <moonchild@palemoon.org> | 2020-01-28 23:03:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 23:03:48 +0000 |
commit | ed88b99849156004c04e4a0c87ea9b2360ef19b6 (patch) | |
tree | 85910991cfd39dc19da5e6ed5526d1a6e6c5ff0a /layout/forms/nsGfxButtonControlFrame.cpp | |
parent | c4b0715baaffc541670fd1158557aa7e61e521d3 (diff) | |
parent | 7a697172f36656126d6e415d91b4e260229ee37f (diff) | |
download | UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.gz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.lz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.tar.xz UXP-ed88b99849156004c04e4a0c87ea9b2360ef19b6.zip |
Merge pull request #1357 from athenian200/form-disabled-issue
Forms: Click() isn't executing properly when elements are defined disabled
Diffstat (limited to 'layout/forms/nsGfxButtonControlFrame.cpp')
-rw-r--r-- | layout/forms/nsGfxButtonControlFrame.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/layout/forms/nsGfxButtonControlFrame.cpp b/layout/forms/nsGfxButtonControlFrame.cpp index 90da437f7..393145e0b 100644 --- a/layout/forms/nsGfxButtonControlFrame.cpp +++ b/layout/forms/nsGfxButtonControlFrame.cpp @@ -227,10 +227,7 @@ nsGfxButtonControlFrame::HandleEvent(nsPresContext* aPresContext, // from being called. The nsFrame::HandleEvent causes the button label // to be selected (Drawn with an XOR rectangle over the label) - // 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); } return NS_OK; |