diff options
author | athenian200 <athenian200@outlook.com> | 2020-08-14 12:26:43 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-08-14 12:26:43 -0500 |
commit | 2372e190256bef645b5dddb6af9b0c1ee14cf846 (patch) | |
tree | 223ed27f239fbc048d65054af01bf13a53daee1b /dom | |
parent | 931e8d29faf577e3cec64b896ee1a06cd93b27b9 (diff) | |
download | uxp-2372e190256bef645b5dddb6af9b0c1ee14cf846.tar.gz |
Fix nits
Diffstat (limited to 'dom')
-rw-r--r-- | dom/html/HTMLLinkElement.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/html/HTMLLinkElement.cpp b/dom/html/HTMLLinkElement.cpp index c2972784c1..98f7e464f8 100644 --- a/dom/html/HTMLLinkElement.cpp +++ b/dom/html/HTMLLinkElement.cpp @@ -130,7 +130,7 @@ HTMLLinkElement::SetMozDisabled(bool aDisabled) { ErrorResult rv; SetDisabled(aDisabled, rv); - return rv.StealNSResult(); + return rv.StealNSResult(); } NS_IMPL_STRING_ATTR(HTMLLinkElement, Charset, charset) @@ -415,8 +415,8 @@ HTMLLinkElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName, } else { // If the disabled attribute is removed from a link element, the // stylesheet may be explicitly enabled. - if (aNameSpaceID == kNameSpaceID_None && LINK_DISABLED) { - if (aName == nsGkAtoms::disabled) { + if (aNameSpaceID == kNameSpaceID_None) { + if (aName == nsGkAtoms::disabled && LINK_DISABLED) { mExplicitlyEnabled = true; } // Since removing href or rel makes us no longer link to a |