OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved. | 3 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool appendFragmentSource(const String&); | 127 bool appendFragmentSource(const String&); |
128 | 128 |
129 public: | 129 public: |
130 // Callbacks from parser SAX | 130 // Callbacks from parser SAX |
131 void error(XMLErrors::ErrorType, const char* message, va_list args) WTF_ATTR
IBUTE_PRINTF(3, 0); | 131 void error(XMLErrors::ErrorType, const char* message, va_list args) WTF_ATTR
IBUTE_PRINTF(3, 0); |
132 void startElementNs(const AtomicString& localName, const AtomicString& prefi
x, const AtomicString& uri, int namespaceCount, | 132 void startElementNs(const AtomicString& localName, const AtomicString& prefi
x, const AtomicString& uri, int namespaceCount, |
133 const xmlChar** namespaces, int attributeCount, int defaultedCount, cons
t xmlChar** libxmlAttributes); | 133 const xmlChar** namespaces, int attributeCount, int defaultedCount, cons
t xmlChar** libxmlAttributes); |
134 void endElementNs(); | 134 void endElementNs(); |
135 void characters(const xmlChar* chars, int length); | 135 void characters(const xmlChar* chars, int length); |
136 void processingInstruction(const String& target, const String& data); | 136 void processingInstruction(const String& target, const String& data); |
137 void cdataBlock(const String&); | |
138 void comment(const String&); | 137 void comment(const String&); |
139 void startDocument(const String& version, const String& encoding, int standa
lone); | 138 void startDocument(const String& version, const String& encoding, int standa
lone); |
140 void internalSubset(const String& name, const String& externalID, const Stri
ng& systemID); | 139 void internalSubset(const String& name, const String& externalID, const Stri
ng& systemID); |
141 void endDocument(); | 140 void endDocument(); |
142 | 141 |
143 private: | 142 private: |
144 void initializeParserContext(const CString& chunk = CString()); | 143 void initializeParserContext(const CString& chunk = CString()); |
145 | 144 |
146 void pushCurrentNode(ContainerNode*); | 145 void pushCurrentNode(ContainerNode*); |
147 void popCurrentNode(); | 146 void popCurrentNode(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 PrefixForNamespaceMap m_prefixToNamespaceMap; | 191 PrefixForNamespaceMap m_prefixToNamespaceMap; |
193 SegmentedString m_pendingSrc; | 192 SegmentedString m_pendingSrc; |
194 }; | 193 }; |
195 | 194 |
196 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin
g& url); | 195 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin
g& url); |
197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); | 196 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); |
198 | 197 |
199 } // namespace blink | 198 } // namespace blink |
200 | 199 |
201 #endif // XMLDocumentParser_h | 200 #endif // XMLDocumentParser_h |
OLD | NEW |