Bug 1635304 [wpt PR 23392] - Remove erroneous named properties object test, a=testonly
[gecko.git] / dom / svg / SVGFESpecularLightingElement.h
blobe56c2fd2b5b246b9379c444f5561dc7e09af5b34
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 #ifndef mozilla_dom_SVGFESpecularLightingElement_h
8 #define mozilla_dom_SVGFESpecularLightingElement_h
10 #include "SVGFilters.h"
12 nsresult NS_NewSVGFESpecularLightingElement(
13 nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
15 namespace mozilla {
16 namespace dom {
18 //---------------------SpecularLighting------------------------
20 typedef SVGFELightingElement SVGFESpecularLightingElementBase;
22 class SVGFESpecularLightingElement : public SVGFESpecularLightingElementBase {
23 friend nsresult(::NS_NewSVGFESpecularLightingElement(
24 nsIContent** aResult,
25 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
27 protected:
28 explicit SVGFESpecularLightingElement(
29 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
30 : SVGFESpecularLightingElementBase(std::move(aNodeInfo)) {}
31 virtual JSObject* WrapNode(JSContext* aCx,
32 JS::Handle<JSObject*> aGivenProto) override;
34 public:
35 virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
37 virtual FilterPrimitiveDescription GetPrimitiveDescription(
38 nsSVGFilterInstance* aInstance, const IntRect& aFilterSubregion,
39 const nsTArray<bool>& aInputsAreTainted,
40 nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
41 virtual bool AttributeAffectsRendering(int32_t aNameSpaceID,
42 nsAtom* aAttribute) const override;
44 // WebIDL
45 already_AddRefed<DOMSVGAnimatedString> In1();
46 already_AddRefed<DOMSVGAnimatedNumber> SurfaceScale();
47 already_AddRefed<DOMSVGAnimatedNumber> SpecularConstant();
48 already_AddRefed<DOMSVGAnimatedNumber> SpecularExponent();
49 already_AddRefed<DOMSVGAnimatedNumber> KernelUnitLengthX();
50 already_AddRefed<DOMSVGAnimatedNumber> KernelUnitLengthY();
53 } // namespace dom
54 } // namespace mozilla
56 #endif // mozilla_dom_SVGFESpecularLightingElement_h