| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 private: | 59 private: |
| 60 XMLParserContext(xmlParserCtxtPtr context) | 60 XMLParserContext(xmlParserCtxtPtr context) |
| 61 : m_context(context) | 61 : m_context(context) |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 xmlParserCtxtPtr m_context; | 65 xmlParserCtxtPtr m_context; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 class XMLDocumentParser final : public ScriptableDocumentParser, public ScriptRe
sourceClient { | 68 class XMLDocumentParser final : public ScriptableDocumentParser, public ScriptRe
sourceClient { |
| 69 USING_GARBAGE_COLLECTED_MIXIN(XMLDocumentParser); |
| 69 public: | 70 public: |
| 70 static XMLDocumentParser* create(Document& document, FrameView* view) | 71 static XMLDocumentParser* create(Document& document, FrameView* view) |
| 71 { | 72 { |
| 72 return new XMLDocumentParser(document, view); | 73 return new XMLDocumentParser(document, view); |
| 73 } | 74 } |
| 74 static XMLDocumentParser* create(DocumentFragment* fragment, Element* elemen
t, ParserContentPolicy parserContentPolicy) | 75 static XMLDocumentParser* create(DocumentFragment* fragment, Element* elemen
t, ParserContentPolicy parserContentPolicy) |
| 75 { | 76 { |
| 76 return new XMLDocumentParser(fragment, element, parserContentPolicy); | 77 return new XMLDocumentParser(fragment, element, parserContentPolicy); |
| 77 } | 78 } |
| 78 ~XMLDocumentParser() override; | 79 ~XMLDocumentParser() override; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 PrefixForNamespaceMap m_prefixToNamespaceMap; | 196 PrefixForNamespaceMap m_prefixToNamespaceMap; |
| 196 SegmentedString m_pendingSrc; | 197 SegmentedString m_pendingSrc; |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url)
; | 200 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url)
; |
| 200 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); | 201 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); |
| 201 | 202 |
| 202 } // namespace blink | 203 } // namespace blink |
| 203 | 204 |
| 204 #endif // XMLDocumentParser_h | 205 #endif // XMLDocumentParser_h |
| OLD | NEW |