diff options
author | athenian200 <athenian200@outlook.com> | 2020-05-21 01:31:48 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-23 16:12:59 +0200 |
commit | a3124c55a13fba4877e0eaa7a6b31f17832b6ce1 (patch) | |
tree | ed44abb0edc3aa974e7bb933da244409c985ced5 /dom/html/HTMLButtonElement.cpp | |
parent | c4ed56660230a124fa3457cd5f789e78a3188515 (diff) | |
download | UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.gz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.lz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.xz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.zip |
Issue #1557 - Allow event dispatch on disabled form controls. (uplift)
Diffstat (limited to 'dom/html/HTMLButtonElement.cpp')
-rw-r--r-- | dom/html/HTMLButtonElement.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/html/HTMLButtonElement.cpp b/dom/html/HTMLButtonElement.cpp index 435aa9f7f..609eb7a66 100644 --- a/dom/html/HTMLButtonElement.cpp +++ b/dom/html/HTMLButtonElement.cpp @@ -199,18 +199,18 @@ HTMLButtonElement::ParseAttribute(int32_t aNamespaceID, } bool -HTMLButtonElement::IsDisabledForEvents(EventMessage aMessage) +HTMLButtonElement::IsDisabledForEvents(WidgetEvent* aEvent) { nsIFormControlFrame* formControlFrame = GetFormControlFrame(false); nsIFrame* formFrame = do_QueryFrame(formControlFrame); - return IsElementDisabledForEvents(aMessage, formFrame); + return IsElementDisabledForEvents(aEvent, formFrame); } nsresult HTMLButtonElement::PreHandleEvent(EventChainPreVisitor& aVisitor) { aVisitor.mCanHandle = false; - if (IsDisabledForEvents(aVisitor.mEvent->mMessage)) { + if (IsDisabledForEvents(aVisitor.mEvent)) { return NS_OK; } |