/src/mozilla-central/dom/svg/SVGFEMergeNodeElement.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/SVGFEMergeNodeElement.h" |
8 | | #include "mozilla/dom/SVGFEMergeNodeElementBinding.h" |
9 | | |
10 | | NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(FEMergeNode) |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | | JSObject* |
16 | | SVGFEMergeNodeElement::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
17 | 0 | { |
18 | 0 | return SVGFEMergeNodeElement_Binding::Wrap(aCx, this, aGivenProto); |
19 | 0 | } |
20 | | |
21 | | nsSVGElement::StringInfo SVGFEMergeNodeElement::sStringInfo[1] = |
22 | | { |
23 | | { &nsGkAtoms::in, kNameSpaceID_None, true } |
24 | | }; |
25 | | |
26 | | //---------------------------------------------------------------------- |
27 | | // nsINode methods |
28 | | |
29 | | NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGFEMergeNodeElement) |
30 | | |
31 | | //---------------------------------------------------------------------- |
32 | | // nsFEUnstyledElement methods |
33 | | |
34 | | bool |
35 | | SVGFEMergeNodeElement::AttributeAffectsRendering(int32_t aNameSpaceID, |
36 | | nsAtom* aAttribute) const |
37 | 0 | { |
38 | 0 | return aNameSpaceID == kNameSpaceID_None && aAttribute == nsGkAtoms::in; |
39 | 0 | } |
40 | | |
41 | | already_AddRefed<SVGAnimatedString> |
42 | | SVGFEMergeNodeElement::In1() |
43 | 0 | { |
44 | 0 | return mStringAttributes[IN1].ToDOMAnimatedString(this); |
45 | 0 | } |
46 | | |
47 | | //---------------------------------------------------------------------- |
48 | | // nsSVGElement methods |
49 | | |
50 | | nsSVGElement::StringAttributesInfo |
51 | | SVGFEMergeNodeElement::GetStringInfo() |
52 | 0 | { |
53 | 0 | return StringAttributesInfo(mStringAttributes, sStringInfo, |
54 | 0 | ArrayLength(sStringInfo)); |
55 | 0 | } |
56 | | |
57 | | } // namespace dom |
58 | | } // namespace mozilla |