diff options
Diffstat (limited to 'WebCore/wml/WMLDocument.h')
-rw-r--r-- | WebCore/wml/WMLDocument.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/wml/WMLDocument.h b/WebCore/wml/WMLDocument.h index fb3e62e..9053518 100644 --- a/WebCore/wml/WMLDocument.h +++ b/WebCore/wml/WMLDocument.h @@ -34,7 +34,7 @@ class WMLDocument : public Document { public: static PassRefPtr<WMLDocument> create(Frame* frame) { - return new WMLDocument(frame); + return adoptRef(new WMLDocument(frame)); } virtual ~WMLDocument(); @@ -44,6 +44,8 @@ public: bool initialize(bool aboutToFinishParsing = false); + WMLCardElement* activeCard() const { return m_activeCard; } + private: WMLDocument(Frame*); WMLCardElement* m_activeCard; |