/src/mozilla-central/dom/svg/SVGTSpanElement.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #include "mozilla/dom/SVGTSpanElement.h" |
8 | | #include "mozilla/dom/SVGTSpanElementBinding.h" |
9 | | |
10 | | NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(TSpan) |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | JSObject* |
16 | | SVGTSpanElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) |
17 | 0 | { |
18 | 0 | return SVGTSpanElement_Binding::Wrap(aCx, this, aGivenProto); |
19 | 0 | } |
20 | | |
21 | | |
22 | | //---------------------------------------------------------------------- |
23 | | // Implementation |
24 | | |
25 | | SVGTSpanElement::SVGTSpanElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) |
26 | | : SVGTSpanElementBase(std::move(aNodeInfo)) |
27 | 0 | { |
28 | 0 | } |
29 | | |
30 | | nsSVGElement::EnumAttributesInfo |
31 | | SVGTSpanElement::GetEnumInfo() |
32 | 0 | { |
33 | 0 | return EnumAttributesInfo(mEnumAttributes, sEnumInfo, |
34 | 0 | ArrayLength(sEnumInfo)); |
35 | 0 | } |
36 | | |
37 | | nsSVGElement::LengthAttributesInfo |
38 | | SVGTSpanElement::GetLengthInfo() |
39 | 0 | { |
40 | 0 | return LengthAttributesInfo(mLengthAttributes, sLengthInfo, |
41 | 0 | ArrayLength(sLengthInfo)); |
42 | 0 | } |
43 | | |
44 | | //---------------------------------------------------------------------- |
45 | | // nsINode methods |
46 | | |
47 | | |
48 | | NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGTSpanElement) |
49 | | |
50 | | //---------------------------------------------------------------------- |
51 | | // nsIContent methods |
52 | | |
53 | | NS_IMETHODIMP_(bool) |
54 | | SVGTSpanElement::IsAttributeMapped(const nsAtom* name) const |
55 | 0 | { |
56 | 0 | static const MappedAttributeEntry* const map[] = { |
57 | 0 | sColorMap, |
58 | 0 | sFillStrokeMap, |
59 | 0 | sFontSpecificationMap, |
60 | 0 | sGraphicsMap, |
61 | 0 | sTextContentElementsMap |
62 | 0 | }; |
63 | 0 |
|
64 | 0 | return FindAttributeDependence(name, map) || |
65 | 0 | SVGTSpanElementBase::IsAttributeMapped(name); |
66 | 0 | } |
67 | | |
68 | | } // namespace dom |
69 | | } // namespace mozilla |