| 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. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef XMLDocumentParser_h | 26 #ifndef XMLDocumentParser_h |
| 27 #define XMLDocumentParser_h | 27 #define XMLDocumentParser_h |
| 28 | 28 |
| 29 #include "core/dom/ParserContentPolicy.h" | 29 #include "core/dom/ParserContentPolicy.h" |
| 30 #include "core/dom/ScriptableDocumentParser.h" | 30 #include "core/dom/ScriptableDocumentParser.h" |
| 31 #include "core/fetch/ResourceClient.h" | 31 #include "core/fetch/ResourceClient.h" |
| 32 #include "core/loader/resource/ScriptResource.h" | 32 #include "core/loader/resource/ScriptResource.h" |
| 33 #include "core/xml/parser/XMLErrors.h" | 33 #include "core/xml/parser/XMLErrors.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/text/SegmentedString.h" | 35 #include "platform/text/SegmentedString.h" |
| 36 #include "wtf/Compiler.h" |
| 36 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
| 37 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 38 #include "wtf/text/CString.h" | 39 #include "wtf/text/CString.h" |
| 39 #include "wtf/text/StringHash.h" | 40 #include "wtf/text/StringHash.h" |
| 40 #include <libxml/tree.h> | 41 #include <libxml/tree.h> |
| 41 #include <memory> | 42 #include <memory> |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| 44 | 45 |
| 45 class ContainerNode; | 46 class ContainerNode; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 133 |
| 133 void end(); | 134 void end(); |
| 134 | 135 |
| 135 void pauseParsing(); | 136 void pauseParsing(); |
| 136 void resumeParsing(); | 137 void resumeParsing(); |
| 137 | 138 |
| 138 bool appendFragmentSource(const String&); | 139 bool appendFragmentSource(const String&); |
| 139 | 140 |
| 140 public: | 141 public: |
| 141 // Callbacks from parser SAX | 142 // Callbacks from parser SAX |
| 142 void error(XMLErrors::ErrorType, const char* message, va_list args) | 143 PRINTF_FORMAT(3, 0) |
| 143 WTF_ATTRIBUTE_PRINTF(3, 0); | 144 void error(XMLErrors::ErrorType, const char* message, va_list args); |
| 144 void startElementNs(const AtomicString& localName, | 145 void startElementNs(const AtomicString& localName, |
| 145 const AtomicString& prefix, | 146 const AtomicString& prefix, |
| 146 const AtomicString& uri, | 147 const AtomicString& uri, |
| 147 int namespaceCount, | 148 int namespaceCount, |
| 148 const xmlChar** namespaces, | 149 const xmlChar** namespaces, |
| 149 int attributeCount, | 150 int attributeCount, |
| 150 int defaultedCount, | 151 int defaultedCount, |
| 151 const xmlChar** libxmlAttributes); | 152 const xmlChar** libxmlAttributes); |
| 152 void endElementNs(); | 153 void endElementNs(); |
| 153 void characters(const xmlChar* chars, int length); | 154 void characters(const xmlChar* chars, int length); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 }; | 220 }; |
| 220 | 221 |
| 221 xmlDocPtr xmlDocPtrForString(Document*, | 222 xmlDocPtr xmlDocPtrForString(Document*, |
| 222 const String& source, | 223 const String& source, |
| 223 const String& url); | 224 const String& url); |
| 224 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); | 225 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); |
| 225 | 226 |
| 226 } // namespace blink | 227 } // namespace blink |
| 227 | 228 |
| 228 #endif // XMLDocumentParser_h | 229 #endif // XMLDocumentParser_h |
| OLD | NEW |