equal
deleted
inserted
replaced
49 class Document; |
49 class Document; |
50 class Element; |
50 class Element; |
51 class FrameView; |
51 class FrameView; |
52 class PendingCallbacks; |
52 class PendingCallbacks; |
53 class ScriptElement; |
53 class ScriptElement; |
|
54 |
|
55 #if !USE(QXMLSTREAM) |
|
56 class XMLParserContext : public RefCounted<XMLParserContext> { |
|
57 public: |
|
58 static PassRefPtr<XMLParserContext> createMemoryParser(xmlSAXHandlerPtr, void*, const char*); |
|
59 static PassRefPtr<XMLParserContext> createStringParser(xmlSAXHandlerPtr, void*); |
|
60 ~XMLParserContext(); |
|
61 xmlParserCtxtPtr context() const { return m_context; } |
|
62 |
|
63 private: |
|
64 XMLParserContext(xmlParserCtxtPtr context) |
|
65 : m_context(context) |
|
66 { |
|
67 } |
|
68 xmlParserCtxtPtr m_context; |
|
69 }; |
|
70 #endif |
54 |
71 |
55 class XMLTokenizer : public Tokenizer, public CachedResourceClient { |
72 class XMLTokenizer : public Tokenizer, public CachedResourceClient { |
56 public: |
73 public: |
57 XMLTokenizer(Document*, FrameView* = 0); |
74 XMLTokenizer(Document*, FrameView* = 0); |
58 XMLTokenizer(DocumentFragment*, Element*); |
75 XMLTokenizer(DocumentFragment*, Element*); |
144 |
161 |
145 #if USE(QXMLSTREAM) |
162 #if USE(QXMLSTREAM) |
146 QXmlStreamReader m_stream; |
163 QXmlStreamReader m_stream; |
147 bool m_wroteText; |
164 bool m_wroteText; |
148 #else |
165 #else |
149 xmlParserCtxtPtr m_context; |
166 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; }; |
|
167 RefPtr<XMLParserContext> m_context; |
150 OwnPtr<PendingCallbacks> m_pendingCallbacks; |
168 OwnPtr<PendingCallbacks> m_pendingCallbacks; |
151 Vector<xmlChar> m_bufferedText; |
169 Vector<xmlChar> m_bufferedText; |
152 #endif |
170 #endif |
153 Node* m_currentNode; |
171 Node* m_currentNode; |
154 Vector<Node*> m_currentNodeStack; |
172 Vector<Node*> m_currentNodeStack; |