summaryrefslogtreecommitdiff
path: root/dom/base/Element.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/Element.cpp')
-rw-r--r--dom/base/Element.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp
index 9ba065238d..2784c17018 100644
--- a/dom/base/Element.cpp
+++ b/dom/base/Element.cpp
@@ -71,9 +71,7 @@
#include "nsAttrValueOrString.h"
#include "nsAttrValueInlines.h"
#include "nsCSSPseudoElements.h"
-#ifdef MOZ_XUL
#include "nsXULElement.h"
-#endif /* MOZ_XUL */
#include "nsSVGElement.h"
#include "nsFrameSelection.h"
#ifdef DEBUG
@@ -112,9 +110,7 @@
#include "nsRuleProcessorData.h"
#include "nsTextNode.h"
-#ifdef MOZ_XUL
#include "nsIXULDocument.h"
-#endif /* MOZ_XUL */
#include "nsCycleCollectionParticipant.h"
#include "nsCCUncollectableMarker.h"
@@ -1545,15 +1541,11 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
aBindingParent == aParent->GetBindingParent(),
"We should be passed the right binding parent");
-#ifdef MOZ_XUL
// First set the binding parent
nsXULElement* xulElem = nsXULElement::FromContent(this);
if (xulElem) {
xulElem->SetXULBindingParent(aBindingParent);
- }
- else
-#endif
- {
+ } else {
if (aBindingParent) {
nsExtendedDOMSlots* slots = ExtendedDOMSlots();
@@ -1971,13 +1963,11 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent)
UnsetFlags(NODE_FORCE_XBL_BINDINGS);
bool clearBindingParent = true;
-#ifdef MOZ_XUL
nsXULElement* xulElem = nsXULElement::FromContent(this);
if (xulElem) {
xulElem->SetXULBindingParent(nullptr);
clearBindingParent = false;
}
-#endif
nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots();
if (slots) {