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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 } | 444 } |
445 | 445 |
446 void XMLDocumentParser::insertErrorMessageBlock() | 446 void XMLDocumentParser::insertErrorMessageBlock() |
447 { | 447 { |
448 m_xmlErrors.insertErrorMessageBlock(); | 448 m_xmlErrors.insertErrorMessageBlock(); |
449 } | 449 } |
450 | 450 |
451 void XMLDocumentParser::notifyFinished(Resource* unusedResource) | 451 void XMLDocumentParser::notifyFinished(Resource* unusedResource) |
452 { | 452 { |
453 ASSERT_UNUSED(unusedResource, unusedResource == m_pendingScript); | 453 ASSERT_UNUSED(unusedResource, unusedResource == m_pendingScript); |
454 ASSERT(m_pendingScript->accessCount() > 0); | |
455 | 454 |
456 ScriptSourceCode sourceCode(m_pendingScript.get()); | 455 ScriptSourceCode sourceCode(m_pendingScript.get()); |
457 bool errorOccurred = m_pendingScript->errorOccurred(); | 456 bool errorOccurred = m_pendingScript->errorOccurred(); |
458 bool wasCanceled = m_pendingScript->wasCanceled(); | 457 bool wasCanceled = m_pendingScript->wasCanceled(); |
459 | 458 |
460 m_pendingScript->removeClient(this); | 459 m_pendingScript->removeClient(this); |
461 m_pendingScript = 0; | 460 m_pendingScript = 0; |
462 | 461 |
463 RefPtr<Element> e = m_scriptElement; | 462 RefPtr<Element> e = m_scriptElement; |
464 m_scriptElement = nullptr; | 463 m_scriptElement = nullptr; |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 sax.initialized = XML_SAX2_MAGIC; | 1599 sax.initialized = XML_SAX2_MAGIC; |
1601 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1600 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1602 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1601 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1603 parseChunk(parser->context(), parseString); | 1602 parseChunk(parser->context(), parseString); |
1604 finishParsing(parser->context()); | 1603 finishParsing(parser->context()); |
1605 attrsOK = state.gotAttributes; | 1604 attrsOK = state.gotAttributes; |
1606 return state.attributes; | 1605 return state.attributes; |
1607 } | 1606 } |
1608 | 1607 |
1609 } // namespace WebCore | 1608 } // namespace WebCore |
OLD | NEW |