1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "mozilla/dom/SVGDefsElement.h"
7 #include "mozilla/dom/SVGDefsElementBinding.h"
9 NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(Defs
)
15 SVGDefsElement::WrapNode(JSContext
* aCx
)
17 return SVGDefsElementBinding::Wrap(aCx
, this);
20 //----------------------------------------------------------------------
23 SVGDefsElement::SVGDefsElement(already_AddRefed
<mozilla::dom::NodeInfo
>& aNodeInfo
)
24 : SVGGraphicsElement(aNodeInfo
)
28 //----------------------------------------------------------------------
32 NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGDefsElement
)
35 //----------------------------------------------------------------------
39 SVGDefsElement::IsAttributeMapped(const nsIAtom
* name
) const
41 static const MappedAttributeEntry
* const map
[] = {
44 sFontSpecificationMap
,
48 sTextContentElementsMap
,
52 return FindAttributeDependence(name
, map
) ||
53 SVGGraphicsElement::IsAttributeMapped(name
);
57 } // namespace mozilla