summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLSummaryElement.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-07 20:27:27 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:08 -0500
commitbc8543bf793b5c203600c57565214b5e20f54592 (patch)
treeba44f39310bb1eb1304a36ab60a82bc031306b78 /dom/html/HTMLSummaryElement.cpp
parentce285b6f2d48ce945b194fd7982cd6a5a306e939 (diff)
downloadUXP-bc8543bf793b5c203600c57565214b5e20f54592.tar
UXP-bc8543bf793b5c203600c57565214b5e20f54592.tar.gz
UXP-bc8543bf793b5c203600c57565214b5e20f54592.tar.lz
UXP-bc8543bf793b5c203600c57565214b5e20f54592.tar.xz
UXP-bc8543bf793b5c203600c57565214b5e20f54592.zip
Bug 1271549 - Remove details and summary preference.
Tag UXP Issue #1344
Diffstat (limited to 'dom/html/HTMLSummaryElement.cpp')
-rw-r--r--dom/html/HTMLSummaryElement.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/dom/html/HTMLSummaryElement.cpp b/dom/html/HTMLSummaryElement.cpp
index ee3c07b20..42ead6b87 100644
--- a/dom/html/HTMLSummaryElement.cpp
+++ b/dom/html/HTMLSummaryElement.cpp
@@ -14,17 +14,7 @@
#include "mozilla/TextEvents.h"
#include "nsFocusManager.h"
-// Expand NS_IMPL_NS_NEW_HTML_ELEMENT(Summary) to add pref check.
-nsGenericHTMLElement*
-NS_NewHTMLSummaryElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
- mozilla::dom::FromParser aFromParser)
-{
- if (!mozilla::dom::HTMLDetailsElement::IsDetailsEnabled()) {
- return new mozilla::dom::HTMLUnknownElement(aNodeInfo);
- }
-
- return new mozilla::dom::HTMLSummaryElement(aNodeInfo);
-}
+NS_IMPL_NS_NEW_HTML_ELEMENT(Summary)
namespace mozilla {
namespace dom {