2007-04-27 01:42:51 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2013-01-18 11:52:40 -08:00
|
|
|
#ifndef mozilla_dom_SVGClipPathElement_h
|
|
|
|
#define mozilla_dom_SVGClipPathElement_h
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2007-08-27 16:11:14 -07:00
|
|
|
#include "nsSVGEnum.h"
|
2013-01-05 22:25:54 -08:00
|
|
|
#include "mozilla/dom/SVGTransformableElement.h"
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2013-01-18 11:52:40 -08:00
|
|
|
class nsSVGClipPathFrame;
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2013-01-18 11:52:40 -08:00
|
|
|
nsresult NS_NewSVGClipPathElement(nsIContent **aResult,
|
2014-06-19 19:01:40 -07:00
|
|
|
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
|
2013-01-18 11:52:40 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
typedef SVGTransformableElement SVGClipPathElementBase;
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class SVGClipPathElement final : public SVGClipPathElementBase
|
2007-04-27 01:42:51 -07:00
|
|
|
{
|
2013-01-18 11:52:40 -08:00
|
|
|
friend class ::nsSVGClipPathFrame;
|
2007-04-27 01:42:51 -07:00
|
|
|
|
|
|
|
protected:
|
2013-01-18 11:52:40 -08:00
|
|
|
friend nsresult (::NS_NewSVGClipPathElement(nsIContent **aResult,
|
2014-06-19 19:01:40 -07:00
|
|
|
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
|
2014-08-31 18:08:04 -07:00
|
|
|
explicit SVGClipPathElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
|
2007-04-27 01:42:51 -07:00
|
|
|
|
|
|
|
public:
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const override;
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2013-01-18 11:53:08 -08:00
|
|
|
// WebIDL
|
2013-07-01 00:02:46 -07:00
|
|
|
already_AddRefed<SVGAnimatedEnumeration> ClipPathUnits();
|
2013-01-18 11:53:08 -08:00
|
|
|
|
2007-04-27 01:42:51 -07:00
|
|
|
protected:
|
|
|
|
|
2007-08-27 16:11:14 -07:00
|
|
|
enum { CLIPPATHUNITS };
|
|
|
|
nsSVGEnum mEnumAttributes[1];
|
|
|
|
static EnumInfo sEnumInfo[1];
|
2007-04-27 01:42:51 -07:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual EnumAttributesInfo GetEnumInfo() override;
|
2007-04-27 01:42:51 -07:00
|
|
|
};
|
|
|
|
|
2013-01-18 11:52:40 -08:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGClipPathElement_h
|