Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / svg / SVGFEMergeNodeElement.cpp
blobbbc0f6c3434edc978a3ae480507e103d605991c6
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/. */
7 #include "mozilla/dom/SVGFEMergeNodeElement.h"
8 #include "mozilla/dom/SVGFEMergeNodeElementBinding.h"
10 NS_IMPL_NS_NEW_SVG_ELEMENT(FEMergeNode)
12 namespace mozilla::dom {
14 JSObject* SVGFEMergeNodeElement::WrapNode(JSContext* aCx,
15 JS::Handle<JSObject*> aGivenProto) {
16 return SVGFEMergeNodeElement_Binding::Wrap(aCx, this, aGivenProto);
19 SVGElement::StringInfo SVGFEMergeNodeElement::sStringInfo[1] = {
20 {nsGkAtoms::in, kNameSpaceID_None, true}};
22 //----------------------------------------------------------------------
23 // nsINode methods
25 NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGFEMergeNodeElement)
27 //----------------------------------------------------------------------
28 // SVGFilterPrimitiveChildElement methods
30 bool SVGFEMergeNodeElement::AttributeAffectsRendering(
31 int32_t aNameSpaceID, nsAtom* aAttribute) const {
32 return aNameSpaceID == kNameSpaceID_None && aAttribute == nsGkAtoms::in;
35 already_AddRefed<DOMSVGAnimatedString> SVGFEMergeNodeElement::In1() {
36 return mStringAttributes[IN1].ToDOMAnimatedString(this);
39 //----------------------------------------------------------------------
40 // SVGElement methods
42 SVGElement::StringAttributesInfo SVGFEMergeNodeElement::GetStringInfo() {
43 return StringAttributesInfo(mStringAttributes, sStringInfo,
44 std::size(sStringInfo));
47 } // namespace mozilla::dom