diff options
Diffstat (limited to 'WebCore/html/HTMLViewSourceDocument.h')
-rw-r--r-- | WebCore/html/HTMLViewSourceDocument.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/WebCore/html/HTMLViewSourceDocument.h b/WebCore/html/HTMLViewSourceDocument.h index e4eadb0..57a8f21 100644 --- a/WebCore/html/HTMLViewSourceDocument.h +++ b/WebCore/html/HTMLViewSourceDocument.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -30,18 +30,18 @@ namespace WebCore { class DoctypeToken; -class HTMLTableCellElement; -class HTMLTableSectionElement; - struct Token; class HTMLViewSourceDocument : public HTMLDocument { public: static PassRefPtr<HTMLViewSourceDocument> create(Frame* frame, const String& mimeType) { - return adoptRef(new HTMLViewSourceDocument(frame, mimeType)); + return new HTMLViewSourceDocument(frame, mimeType); } + // Returns HTMLTokenizer or TextTokenizer based on m_type. + virtual Tokenizer* createTokenizer(); + void addViewSourceToken(Token*); // Used by the HTML tokenizer. void addViewSourceText(const String&); // Used by the plaintext tokenizer. void addViewSourceDoctypeToken(DoctypeToken*); @@ -49,19 +49,16 @@ public: private: HTMLViewSourceDocument(Frame*, const String& mimeType); - // Returns HTMLTokenizer or TextTokenizer based on m_type. - virtual Tokenizer* createTokenizer(); - void createContainingTable(); - PassRefPtr<Element> addSpanWithClassName(const String&); + Element* addSpanWithClassName(const String&); void addLine(const String& className); void addText(const String& text, const String& className); - PassRefPtr<Element> addLink(const String& url, bool isAnchor); + Element* addLink(const String& url, bool isAnchor); String m_type; - RefPtr<Element> m_current; - RefPtr<HTMLTableSectionElement> m_tbody; - RefPtr<HTMLTableCellElement> m_td; + Element* m_current; + Element* m_tbody; + Element* m_td; }; } |