| 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, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 9 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 10 * | 10 * |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "XMLDocumentParser.h" | 28 #include "XMLDocumentParser.h" |
| 29 | 29 |
| 30 #include <libxml/parser.h> | 30 #include <libxml/parser.h> |
| 31 #include <libxml/parserInternals.h> | 31 #include <libxml/parserInternals.h> |
| 32 #include "CDATASection.h" | 32 #include "CDATASection.h" |
| 33 #include "CachedResourceLoader.h" | |
| 34 #include "CachedScript.h" | |
| 35 #include "Comment.h" | 33 #include "Comment.h" |
| 36 #include "Document.h" | 34 #include "Document.h" |
| 37 #include "DocumentFragment.h" | 35 #include "DocumentFragment.h" |
| 38 #include "DocumentType.h" | 36 #include "DocumentType.h" |
| 39 #include "ExceptionCodePlaceholder.h" | 37 #include "ExceptionCodePlaceholder.h" |
| 40 #include "Frame.h" | 38 #include "Frame.h" |
| 41 #include "FrameView.h" | 39 #include "FrameView.h" |
| 42 #include "HTMLEntityParser.h" | 40 #include "HTMLEntityParser.h" |
| 43 #include "HTMLHtmlElement.h" | 41 #include "HTMLHtmlElement.h" |
| 44 #include "HTMLLinkElement.h" | 42 #include "HTMLLinkElement.h" |
| 45 #include "HTMLNames.h" | 43 #include "HTMLNames.h" |
| 46 #include "HTMLStyleElement.h" | 44 #include "HTMLStyleElement.h" |
| 47 #include "HTMLTemplateElement.h" | 45 #include "HTMLTemplateElement.h" |
| 48 #include "ProcessingInstruction.h" | 46 #include "ProcessingInstruction.h" |
| 49 #include "ScriptElement.h" | 47 #include "ScriptElement.h" |
| 50 #include "ScriptSourceCode.h" | 48 #include "ScriptSourceCode.h" |
| 51 #include "ScriptValue.h" | 49 #include "ScriptValue.h" |
| 52 #include "SecurityOrigin.h" | 50 #include "SecurityOrigin.h" |
| 53 #include "TransformSource.h" | 51 #include "TransformSource.h" |
| 54 #include "XMLDocumentParserScope.h" | 52 #include "XMLDocumentParserScope.h" |
| 55 #include "XMLNSNames.h" | 53 #include "XMLNSNames.h" |
| 56 #include "core/loader/FrameLoader.h" | 54 #include "core/loader/FrameLoader.h" |
| 57 #include "core/loader/TextResourceDecoder.h" | 55 #include "core/loader/TextResourceDecoder.h" |
| 56 #include "core/loader/cache/CachedResourceLoader.h" |
| 57 #include "core/loader/cache/CachedScript.h" |
| 58 #include "core/platform/network/ResourceError.h" | 58 #include "core/platform/network/ResourceError.h" |
| 59 #include "core/platform/network/ResourceHandle.h" | 59 #include "core/platform/network/ResourceHandle.h" |
| 60 #include "core/platform/network/ResourceRequest.h" | 60 #include "core/platform/network/ResourceRequest.h" |
| 61 #include "core/platform/network/ResourceResponse.h" | 61 #include "core/platform/network/ResourceResponse.h" |
| 62 #include <wtf/StringExtras.h> | 62 #include <wtf/StringExtras.h> |
| 63 #include <wtf/text/CString.h> | 63 #include <wtf/text/CString.h> |
| 64 #include <wtf/Threading.h> | 64 #include <wtf/Threading.h> |
| 65 #include <wtf/unicode/UTF8.h> | 65 #include <wtf/unicode/UTF8.h> |
| 66 #include <wtf/UnusedParam.h> | 66 #include <wtf/UnusedParam.h> |
| 67 #include <wtf/Vector.h> | 67 #include <wtf/Vector.h> |
| (...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 sax.startElementNs = attributesStartElementNsHandler; | 1520 sax.startElementNs = attributesStartElementNsHandler; |
| 1521 sax.initialized = XML_SAX2_MAGIC; | 1521 sax.initialized = XML_SAX2_MAGIC; |
| 1522 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1522 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
| 1523 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1523 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
| 1524 xmlParseChunk(parser->context(), reinterpret_cast<const char*>(parseString.c
haracters()), parseString.length() * sizeof(UChar), 1); | 1524 xmlParseChunk(parser->context(), reinterpret_cast<const char*>(parseString.c
haracters()), parseString.length() * sizeof(UChar), 1); |
| 1525 attrsOK = state.gotAttributes; | 1525 attrsOK = state.gotAttributes; |
| 1526 return state.attributes; | 1526 return state.attributes; |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 } | 1529 } |
| OLD | NEW |