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, 2008, 2014 Apple Inc. All rights reserved. | 3 * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved. |
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2008 Holger Hans Peter Freyther | 7 * Copyright (C) 2008 Holger Hans Peter Freyther |
8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 | 845 |
846 DEFINE_TRACE(XMLDocumentParser) | 846 DEFINE_TRACE(XMLDocumentParser) |
847 { | 847 { |
848 visitor->trace(m_currentNode); | 848 visitor->trace(m_currentNode); |
849 visitor->trace(m_currentNodeStack); | 849 visitor->trace(m_currentNodeStack); |
850 visitor->trace(m_leafTextNode); | 850 visitor->trace(m_leafTextNode); |
851 visitor->trace(m_xmlErrors); | 851 visitor->trace(m_xmlErrors); |
852 visitor->trace(m_pendingScript); | 852 visitor->trace(m_pendingScript); |
853 visitor->trace(m_scriptElement); | 853 visitor->trace(m_scriptElement); |
854 ScriptableDocumentParser::trace(visitor); | 854 ScriptableDocumentParser::trace(visitor); |
| 855 ScriptResourceClient::trace(visitor); |
855 } | 856 } |
856 | 857 |
857 void XMLDocumentParser::doWrite(const String& parseString) | 858 void XMLDocumentParser::doWrite(const String& parseString) |
858 { | 859 { |
859 TRACE_EVENT0("blink", "XMLDocumentParser::doWrite"); | 860 TRACE_EVENT0("blink", "XMLDocumentParser::doWrite"); |
860 ASSERT(!isDetached()); | 861 ASSERT(!isDetached()); |
861 if (!m_context) | 862 if (!m_context) |
862 initializeParserContext(); | 863 initializeParserContext(); |
863 | 864 |
864 // Protect the libxml context from deletion during a callback | 865 // Protect the libxml context from deletion during a callback |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 sax.initialized = XML_SAX2_MAGIC; | 1638 sax.initialized = XML_SAX2_MAGIC; |
1638 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1639 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1639 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1640 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1640 parseChunk(parser->context(), parseString); | 1641 parseChunk(parser->context(), parseString); |
1641 finishParsing(parser->context()); | 1642 finishParsing(parser->context()); |
1642 attrsOK = state.gotAttributes; | 1643 attrsOK = state.gotAttributes; |
1643 return state.attributes; | 1644 return state.attributes; |
1644 } | 1645 } |
1645 | 1646 |
1646 } // namespace blink | 1647 } // namespace blink |
OLD | NEW |