diff options
author | athenian200 <athenian200@outlook.com> | 2020-05-20 23:25:37 -0500 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-21 13:10:27 +0000 |
commit | 8b44473fe65a1dd6eb30525e0d4f1370010b2d54 (patch) | |
tree | 9c53472972470607131bdf2978d4ec73993f4d0d /layout/forms/nsGfxButtonControlFrame.cpp | |
parent | 6e0aee959ecc485297c2da5bc9229d3cff13ccc4 (diff) | |
download | UXP-8b44473fe65a1dd6eb30525e0d4f1370010b2d54.tar UXP-8b44473fe65a1dd6eb30525e0d4f1370010b2d54.tar.gz UXP-8b44473fe65a1dd6eb30525e0d4f1370010b2d54.tar.lz UXP-8b44473fe65a1dd6eb30525e0d4f1370010b2d54.tar.xz UXP-8b44473fe65a1dd6eb30525e0d4f1370010b2d54.zip |
Revert "Merge pull request #1357 from athenian200/form-disabled-issue"
This reverts commit ed88b99849156004c04e4a0c87ea9b2360ef19b6, reversing
changes made to c4b0715baaffc541670fd1158557aa7e61e521d3.
Diffstat (limited to 'layout/forms/nsGfxButtonControlFrame.cpp')
-rw-r--r-- | layout/forms/nsGfxButtonControlFrame.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layout/forms/nsGfxButtonControlFrame.cpp b/layout/forms/nsGfxButtonControlFrame.cpp index 393145e0b..90da437f7 100644 --- a/layout/forms/nsGfxButtonControlFrame.cpp +++ b/layout/forms/nsGfxButtonControlFrame.cpp @@ -227,7 +227,10 @@ 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) - if (IsContentDisabled()) { + // do we have user-input style? + const nsStyleUserInterface* uiStyle = StyleUserInterface(); + if (uiStyle->mUserInput == StyleUserInput::None || + uiStyle->mUserInput == StyleUserInput::Disabled) { return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus); } return NS_OK; |