| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 public: | 70 public: |
| 71 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(Document& document,
FrameView* view) | 71 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(Document& document,
FrameView* view) |
| 72 { | 72 { |
| 73 return adoptRefWillBeNoop(new XMLDocumentParser(document, view)); | 73 return adoptRefWillBeNoop(new XMLDocumentParser(document, view)); |
| 74 } | 74 } |
| 75 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(DocumentFragment* fr
agment, Element* element, ParserContentPolicy parserContentPolicy) | 75 static PassRefPtrWillBeRawPtr<XMLDocumentParser> create(DocumentFragment* fr
agment, Element* element, ParserContentPolicy parserContentPolicy) |
| 76 { | 76 { |
| 77 return adoptRefWillBeNoop(new XMLDocumentParser(fragment, element, parse
rContentPolicy)); | 77 return adoptRefWillBeNoop(new XMLDocumentParser(fragment, element, parse
rContentPolicy)); |
| 78 } | 78 } |
| 79 virtual ~XMLDocumentParser(); | 79 virtual ~XMLDocumentParser(); |
| 80 virtual void trace(Visitor*) override; | 80 DECLARE_VIRTUAL_TRACE(); |
| 81 | 81 |
| 82 // Exposed for callbacks: | 82 // Exposed for callbacks: |
| 83 void handleError(XMLErrors::ErrorType, const char* message, TextPosition); | 83 void handleError(XMLErrors::ErrorType, const char* message, TextPosition); |
| 84 | 84 |
| 85 void setIsXHTMLDocument(bool isXHTML) { m_isXHTMLDocument = isXHTML; } | 85 void setIsXHTMLDocument(bool isXHTML) { m_isXHTMLDocument = isXHTML; } |
| 86 bool isXHTMLDocument() const { return m_isXHTMLDocument; } | 86 bool isXHTMLDocument() const { return m_isXHTMLDocument; } |
| 87 | 87 |
| 88 bool isCurrentlyParsing8BitChunk() { return m_isCurrentlyParsing8BitChunk; } | 88 bool isCurrentlyParsing8BitChunk() { return m_isCurrentlyParsing8BitChunk; } |
| 89 | 89 |
| 90 static bool parseDocumentFragment(const String&, DocumentFragment*, Element*
parent = 0, ParserContentPolicy = AllowScriptingContent); | 90 static bool parseDocumentFragment(const String&, DocumentFragment*, Element*
parent = 0, ParserContentPolicy = AllowScriptingContent); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 PrefixForNamespaceMap m_prefixToNamespaceMap; | 192 PrefixForNamespaceMap m_prefixToNamespaceMap; |
| 193 SegmentedString m_pendingSrc; | 193 SegmentedString m_pendingSrc; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin
g& url); | 196 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin
g& url); |
| 197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); | 197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| 200 | 200 |
| 201 #endif // XMLDocumentParser_h | 201 #endif // XMLDocumentParser_h |
| OLD | NEW |