2007-03-22 10:30:00 -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-03-22 10:30:00 -07:00
|
|
|
|
2013-03-20 09:22:26 -07:00
|
|
|
#ifndef mozilla_dom_SVGDocument_h
|
|
|
|
#define mozilla_dom_SVGDocument_h
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-05-29 13:43:41 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-03-20 09:22:26 -07:00
|
|
|
#include "mozilla/dom/XMLDocument.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-20 09:22:26 -07:00
|
|
|
class nsSVGElement;
|
|
|
|
|
2013-03-20 09:22:26 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2013-07-11 14:26:54 -07:00
|
|
|
class SVGDocument MOZ_FINAL : public XMLDocument
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-03-26 09:06:27 -07:00
|
|
|
public:
|
2013-05-29 13:43:41 -07:00
|
|
|
virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const MOZ_OVERRIDE;
|
2013-03-20 09:22:26 -07:00
|
|
|
|
|
|
|
// WebIDL API
|
|
|
|
void GetDomain(nsAString& aDomain, ErrorResult& aRv);
|
|
|
|
nsSVGElement* GetRootElement(ErrorResult& aRv);
|
|
|
|
|
|
|
|
protected:
|
2013-04-25 09:29:54 -07:00
|
|
|
virtual JSObject* WrapNode(JSContext *aCx,
|
|
|
|
JS::Handle<JSObject*> aScope) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2013-03-20 09:22:26 -07:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGDocument_h
|