* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGDocument_h
-#define SVGDocument_h
+#pragma once
#include "XMLDocument.h"
class SVGSVGElement;
class SVGDocument final : public XMLDocument {
+ WTF_MAKE_ISO_ALLOCATED(SVGDocument);
public:
static Ref<SVGDocument> create(Frame*, const URL&);
- SVGSVGElement* rootElement() const;
+ static RefPtr<SVGSVGElement> rootElement(const Document&);
bool zoomAndPanEnabled() const;
void startPan(const FloatPoint& start);
private:
SVGDocument(Frame*, const URL&);
- virtual Ref<Document> cloneDocumentWithoutChildren() const override;
+ Ref<Document> cloneDocumentWithoutChildren() const override;
FloatSize m_panningOffset;
};
static bool isType(const WebCore::Document& document) { return document.isSVGDocument(); }
static bool isType(const WebCore::Node& node) { return is<WebCore::Document>(node) && isType(downcast<WebCore::Document>(node)); }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // SVGDocument_h