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 Apple Inc. All rights reserved. | 3 * Copyright (C) 2005, 2006, 2008 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 if (isStopped()) | 1171 if (isStopped()) |
1172 return; | 1172 return; |
1173 | 1173 |
1174 if (m_parserPaused) { | 1174 if (m_parserPaused) { |
1175 m_pendingCallbacks.append(adoptPtr(new PendingCommentCallback(text))); | 1175 m_pendingCallbacks.append(adoptPtr(new PendingCommentCallback(text))); |
1176 return; | 1176 return; |
1177 } | 1177 } |
1178 | 1178 |
1179 exitText(); | 1179 exitText(); |
1180 | 1180 |
1181 RefPtr<Comment> newNode = Comment::create(&m_currentNode->document(), text); | 1181 RefPtr<Comment> newNode = Comment::create(m_currentNode->document(), text); |
1182 m_currentNode->parserAppendChild(newNode.get()); | 1182 m_currentNode->parserAppendChild(newNode.get()); |
1183 } | 1183 } |
1184 | 1184 |
1185 enum StandaloneInfo { | 1185 enum StandaloneInfo { |
1186 StandaloneUnspecified = -2, | 1186 StandaloneUnspecified = -2, |
1187 NoXMlDeclaration, | 1187 NoXMlDeclaration, |
1188 StandaloneNo, | 1188 StandaloneNo, |
1189 StandaloneYes | 1189 StandaloneYes |
1190 }; | 1190 }; |
1191 | 1191 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 sax.initialized = XML_SAX2_MAGIC; | 1614 sax.initialized = XML_SAX2_MAGIC; |
1615 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1615 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1616 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1616 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1617 parseChunk(parser->context(), parseString); | 1617 parseChunk(parser->context(), parseString); |
1618 finishParsing(parser->context()); | 1618 finishParsing(parser->context()); |
1619 attrsOK = state.gotAttributes; | 1619 attrsOK = state.gotAttributes; |
1620 return state.attributes; | 1620 return state.attributes; |
1621 } | 1621 } |
1622 | 1622 |
1623 } // namespace WebCore | 1623 } // namespace WebCore |
OLD | NEW |