Bumping manifests a=b2g-bump
[gecko.git] / dom / svg / SVGDefsElement.cpp
blobb6391cc70856f51f9247e76d19f9785c21709b57
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)
11 namespace mozilla {
12 namespace dom {
14 JSObject*
15 SVGDefsElement::WrapNode(JSContext* aCx)
17 return SVGDefsElementBinding::Wrap(aCx, this);
20 //----------------------------------------------------------------------
21 // Implementation
23 SVGDefsElement::SVGDefsElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
24 : SVGGraphicsElement(aNodeInfo)
28 //----------------------------------------------------------------------
29 // nsIDOMNode methods
32 NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGDefsElement)
35 //----------------------------------------------------------------------
36 // nsIContent methods
38 NS_IMETHODIMP_(bool)
39 SVGDefsElement::IsAttributeMapped(const nsIAtom* name) const
41 static const MappedAttributeEntry* const map[] = {
42 sFEFloodMap,
43 sFiltersMap,
44 sFontSpecificationMap,
45 sGradientStopMap,
46 sLightingEffectsMap,
47 sMarkersMap,
48 sTextContentElementsMap,
49 sViewportsMap
52 return FindAttributeDependence(name, map) ||
53 SVGGraphicsElement::IsAttributeMapped(name);
56 } // namespace dom
57 } // namespace mozilla