summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLFieldSetElement.cpp
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-05-21 01:31:48 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-05-23 16:12:59 +0200
commita3124c55a13fba4877e0eaa7a6b31f17832b6ce1 (patch)
treeed44abb0edc3aa974e7bb933da244409c985ced5 /dom/html/HTMLFieldSetElement.cpp
parentc4ed56660230a124fa3457cd5f789e78a3188515 (diff)
downloadUXP-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/HTMLFieldSetElement.cpp')
-rw-r--r--dom/html/HTMLFieldSetElement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/html/HTMLFieldSetElement.cpp b/dom/html/HTMLFieldSetElement.cpp
index d72fd1061..788d88791 100644
--- a/dom/html/HTMLFieldSetElement.cpp
+++ b/dom/html/HTMLFieldSetElement.cpp
@@ -63,9 +63,9 @@ NS_IMPL_STRING_ATTR(HTMLFieldSetElement, Name, name)
NS_IMPL_NSICONSTRAINTVALIDATION(HTMLFieldSetElement)
bool
-HTMLFieldSetElement::IsDisabledForEvents(EventMessage aMessage)
+HTMLFieldSetElement::IsDisabledForEvents(WidgetEvent* aEvent)
{
- return IsElementDisabledForEvents(aMessage, nullptr);
+ return IsElementDisabledForEvents(aEvent, nullptr);
}
// nsIContent
@@ -74,7 +74,7 @@ HTMLFieldSetElement::PreHandleEvent(EventChainPreVisitor& aVisitor)
{
// Do not process any DOM events if the element is disabled.
aVisitor.mCanHandle = false;
- if (IsDisabledForEvents(aVisitor.mEvent->mMessage)) {
+ if (IsDisabledForEvents(aVisitor.mEvent)) {
return NS_OK;
}