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 11 matching lines...) Expand all Loading... |
22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
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 "core/xml/parser/XMLDocumentParser.h" | 28 #include "core/xml/parser/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" | |
33 #include "Comment.h" | |
34 #include "Document.h" | |
35 #include "DocumentFragment.h" | |
36 #include "DocumentType.h" | |
37 #include "ExceptionCodePlaceholder.h" | |
38 #include "HTMLEntityParser.h" | 32 #include "HTMLEntityParser.h" |
39 #include "HTMLHtmlElement.h" | 33 #include "HTMLHtmlElement.h" |
40 #include "HTMLLinkElement.h" | 34 #include "HTMLLinkElement.h" |
41 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
42 #include "HTMLStyleElement.h" | 36 #include "HTMLStyleElement.h" |
43 #include "HTMLTemplateElement.h" | 37 #include "HTMLTemplateElement.h" |
44 #include "ProcessingInstruction.h" | |
45 #include "ScriptElement.h" | |
46 #include "ScriptSourceCode.h" | 38 #include "ScriptSourceCode.h" |
47 #include "ScriptValue.h" | 39 #include "ScriptValue.h" |
48 #include "TransformSource.h" | |
49 #include "XMLNSNames.h" | 40 #include "XMLNSNames.h" |
| 41 #include "core/dom/CDATASection.h" |
| 42 #include "core/dom/Comment.h" |
| 43 #include "core/dom/Document.h" |
| 44 #include "core/dom/DocumentFragment.h" |
| 45 #include "core/dom/DocumentType.h" |
| 46 #include "core/dom/ExceptionCodePlaceholder.h" |
| 47 #include "core/dom/ProcessingInstruction.h" |
| 48 #include "core/dom/ScriptElement.h" |
| 49 #include "core/dom/TransformSource.h" |
50 #include "core/loader/FrameLoader.h" | 50 #include "core/loader/FrameLoader.h" |
51 #include "core/loader/TextResourceDecoder.h" | 51 #include "core/loader/TextResourceDecoder.h" |
52 #include "core/loader/cache/CachedResourceLoader.h" | 52 #include "core/loader/cache/CachedResourceLoader.h" |
53 #include "core/loader/cache/CachedScript.h" | 53 #include "core/loader/cache/CachedScript.h" |
54 #include "core/page/Frame.h" | 54 #include "core/page/Frame.h" |
55 #include "core/page/FrameView.h" | 55 #include "core/page/FrameView.h" |
56 #include "core/page/SecurityOrigin.h" | 56 #include "core/page/SecurityOrigin.h" |
57 #include "core/platform/network/ResourceError.h" | 57 #include "core/platform/network/ResourceError.h" |
58 #include "core/platform/network/ResourceHandle.h" | 58 #include "core/platform/network/ResourceHandle.h" |
59 #include "core/platform/network/ResourceRequest.h" | 59 #include "core/platform/network/ResourceRequest.h" |
(...skipping 1460 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 |