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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 void XMLDocumentParser::trace(Visitor* visitor) | 850 void XMLDocumentParser::trace(Visitor* visitor) |
851 { | 851 { |
852 visitor->trace(m_currentNode); | 852 visitor->trace(m_currentNode); |
853 #if ENABLE(OILPAN) | 853 #if ENABLE(OILPAN) |
854 visitor->trace(m_currentNodeStack); | 854 visitor->trace(m_currentNodeStack); |
855 #endif | 855 #endif |
856 visitor->trace(m_leafTextNode); | 856 visitor->trace(m_leafTextNode); |
857 visitor->trace(m_xmlErrors); | 857 visitor->trace(m_xmlErrors); |
858 visitor->trace(m_scriptElement); | 858 visitor->trace(m_scriptElement); |
859 ScriptableDocumentParser::trace(visitor); | 859 ScriptableDocumentParser::trace(visitor); |
| 860 ResourceClient::trace(visitor); |
860 } | 861 } |
861 | 862 |
862 void XMLDocumentParser::doWrite(const String& parseString) | 863 void XMLDocumentParser::doWrite(const String& parseString) |
863 { | 864 { |
864 TRACE_EVENT0("blink", "XMLDocumentParser::doWrite"); | 865 TRACE_EVENT0("blink", "XMLDocumentParser::doWrite"); |
865 ASSERT(!isDetached()); | 866 ASSERT(!isDetached()); |
866 if (!m_context) | 867 if (!m_context) |
867 initializeParserContext(); | 868 initializeParserContext(); |
868 | 869 |
869 // Protect the libxml context from deletion during a callback | 870 // Protect the libxml context from deletion during a callback |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 sax.initialized = XML_SAX2_MAGIC; | 1630 sax.initialized = XML_SAX2_MAGIC; |
1630 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1631 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1631 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1632 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1632 parseChunk(parser->context(), parseString); | 1633 parseChunk(parser->context(), parseString); |
1633 finishParsing(parser->context()); | 1634 finishParsing(parser->context()); |
1634 attrsOK = state.gotAttributes; | 1635 attrsOK = state.gotAttributes; |
1635 return state.attributes; | 1636 return state.attributes; |
1636 } | 1637 } |
1637 | 1638 |
1638 } // namespace blink | 1639 } // namespace blink |
OLD | NEW |