michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_SVGDocument_h michael@0: #define mozilla_dom_SVGDocument_h michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/dom/XMLDocument.h" michael@0: michael@0: class nsSVGElement; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: class SVGDocument MOZ_FINAL : public XMLDocument michael@0: { michael@0: public: michael@0: virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const MOZ_OVERRIDE; michael@0: michael@0: // WebIDL API michael@0: void GetDomain(nsAString& aDomain, ErrorResult& aRv); michael@0: nsSVGElement* GetRootElement(ErrorResult& aRv); michael@0: michael@0: protected: michael@0: virtual JSObject* WrapNode(JSContext *aCx) MOZ_OVERRIDE; michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_SVGDocument_h