Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Side by Side Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 937653002: InlinedVisitor: Migrate xml to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.h ('k') | Source/core/xml/parser/XMLErrors.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 // The XMLDocumentParser will always be detached before being destroyed. 848 // The XMLDocumentParser will always be detached before being destroyed.
849 ASSERT(m_currentNodeStack.isEmpty()); 849 ASSERT(m_currentNodeStack.isEmpty());
850 ASSERT(!m_currentNode); 850 ASSERT(!m_currentNode);
851 #endif 851 #endif
852 852
853 // FIXME: m_pendingScript handling should be moved into XMLDocumentParser.cp p! 853 // FIXME: m_pendingScript handling should be moved into XMLDocumentParser.cp p!
854 if (m_pendingScript) 854 if (m_pendingScript)
855 m_pendingScript->removeClient(this); 855 m_pendingScript->removeClient(this);
856 } 856 }
857 857
858 void XMLDocumentParser::trace(Visitor* visitor) 858 DEFINE_TRACE(XMLDocumentParser)
859 { 859 {
860 visitor->trace(m_currentNode); 860 visitor->trace(m_currentNode);
861 #if ENABLE(OILPAN) 861 #if ENABLE(OILPAN)
862 visitor->trace(m_currentNodeStack); 862 visitor->trace(m_currentNodeStack);
863 #endif 863 #endif
864 visitor->trace(m_leafTextNode); 864 visitor->trace(m_leafTextNode);
865 visitor->trace(m_xmlErrors); 865 visitor->trace(m_xmlErrors);
866 visitor->trace(m_scriptElement); 866 visitor->trace(m_scriptElement);
867 ScriptableDocumentParser::trace(visitor); 867 ScriptableDocumentParser::trace(visitor);
868 } 868 }
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 sax.initialized = XML_SAX2_MAGIC; 1656 sax.initialized = XML_SAX2_MAGIC;
1657 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax, &state); 1657 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax, &state);
1658 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; 1658 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />";
1659 parseChunk(parser->context(), parseString); 1659 parseChunk(parser->context(), parseString);
1660 finishParsing(parser->context()); 1660 finishParsing(parser->context());
1661 attrsOK = state.gotAttributes; 1661 attrsOK = state.gotAttributes;
1662 return state.attributes; 1662 return state.attributes;
1663 } 1663 }
1664 1664
1665 } // namespace blink 1665 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.h ('k') | Source/core/xml/parser/XMLErrors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698