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 12 matching lines...) Expand all Loading... |
23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/xml/parser/XMLDocumentParser.h" | 27 #include "core/xml/parser/XMLDocumentParser.h" |
28 | 28 |
29 #include <libxml/catalog.h> | 29 #include <libxml/catalog.h> |
30 #include <libxml/parser.h> | 30 #include <libxml/parser.h> |
31 #include <libxml/parserInternals.h> | 31 #include <libxml/parserInternals.h> |
32 #include <libxslt/xslt.h> | 32 #include <libxslt/xslt.h> |
33 #include "FetchInitiatorTypeNames.h" | |
34 #include "HTMLNames.h" | |
35 #include "RuntimeEnabledFeatures.h" | |
36 #include "XMLNSNames.h" | |
37 #include "bindings/v8/ExceptionState.h" | 33 #include "bindings/v8/ExceptionState.h" |
38 #include "bindings/v8/ExceptionStatePlaceholder.h" | 34 #include "bindings/v8/ExceptionStatePlaceholder.h" |
39 #include "bindings/v8/ScriptController.h" | 35 #include "bindings/v8/ScriptController.h" |
40 #include "bindings/v8/ScriptSourceCode.h" | 36 #include "bindings/v8/ScriptSourceCode.h" |
| 37 #include "core/FetchInitiatorTypeNames.h" |
| 38 #include "core/HTMLNames.h" |
| 39 #include "core/XMLNSNames.h" |
41 #include "core/dom/CDATASection.h" | 40 #include "core/dom/CDATASection.h" |
42 #include "core/dom/Comment.h" | 41 #include "core/dom/Comment.h" |
43 #include "core/dom/Document.h" | 42 #include "core/dom/Document.h" |
44 #include "core/dom/DocumentFragment.h" | 43 #include "core/dom/DocumentFragment.h" |
45 #include "core/dom/DocumentType.h" | 44 #include "core/dom/DocumentType.h" |
46 #include "core/dom/ProcessingInstruction.h" | 45 #include "core/dom/ProcessingInstruction.h" |
47 #include "core/dom/ScriptLoader.h" | 46 #include "core/dom/ScriptLoader.h" |
48 #include "core/dom/TransformSource.h" | 47 #include "core/dom/TransformSource.h" |
49 #include "core/fetch/ResourceFetcher.h" | 48 #include "core/fetch/ResourceFetcher.h" |
50 #include "core/fetch/ScriptResource.h" | 49 #include "core/fetch/ScriptResource.h" |
51 #include "core/frame/LocalFrame.h" | 50 #include "core/frame/LocalFrame.h" |
52 #include "core/frame/UseCounter.h" | 51 #include "core/frame/UseCounter.h" |
53 #include "core/html/HTMLHtmlElement.h" | 52 #include "core/html/HTMLHtmlElement.h" |
54 #include "core/html/HTMLTemplateElement.h" | 53 #include "core/html/HTMLTemplateElement.h" |
55 #include "core/html/parser/HTMLEntityParser.h" | 54 #include "core/html/parser/HTMLEntityParser.h" |
56 #include "core/html/parser/TextResourceDecoder.h" | 55 #include "core/html/parser/TextResourceDecoder.h" |
57 #include "core/loader/FrameLoader.h" | 56 #include "core/loader/FrameLoader.h" |
58 #include "core/loader/ImageLoader.h" | 57 #include "core/loader/ImageLoader.h" |
59 #include "core/svg/graphics/SVGImage.h" | 58 #include "core/svg/graphics/SVGImage.h" |
60 #include "core/xml/XMLTreeViewer.h" | 59 #include "core/xml/XMLTreeViewer.h" |
61 #include "core/xml/parser/SharedBufferReader.h" | 60 #include "core/xml/parser/SharedBufferReader.h" |
62 #include "core/xml/parser/XMLDocumentParserScope.h" | 61 #include "core/xml/parser/XMLDocumentParserScope.h" |
63 #include "core/xml/parser/XMLParserInput.h" | 62 #include "core/xml/parser/XMLParserInput.h" |
| 63 #include "platform/RuntimeEnabledFeatures.h" |
64 #include "platform/SharedBuffer.h" | 64 #include "platform/SharedBuffer.h" |
65 #include "platform/network/ResourceError.h" | 65 #include "platform/network/ResourceError.h" |
66 #include "platform/network/ResourceRequest.h" | 66 #include "platform/network/ResourceRequest.h" |
67 #include "platform/network/ResourceResponse.h" | 67 #include "platform/network/ResourceResponse.h" |
68 #include "platform/weborigin/SecurityOrigin.h" | 68 #include "platform/weborigin/SecurityOrigin.h" |
69 #include "wtf/StringExtras.h" | 69 #include "wtf/StringExtras.h" |
70 #include "wtf/TemporaryChange.h" | 70 #include "wtf/TemporaryChange.h" |
71 #include "wtf/Threading.h" | 71 #include "wtf/Threading.h" |
72 #include "wtf/Vector.h" | 72 #include "wtf/Vector.h" |
73 #include "wtf/unicode/UTF8.h" | 73 #include "wtf/unicode/UTF8.h" |
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 sax.initialized = XML_SAX2_MAGIC; | 1616 sax.initialized = XML_SAX2_MAGIC; |
1617 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1617 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1618 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1618 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1619 parseChunk(parser->context(), parseString); | 1619 parseChunk(parser->context(), parseString); |
1620 finishParsing(parser->context()); | 1620 finishParsing(parser->context()); |
1621 attrsOK = state.gotAttributes; | 1621 attrsOK = state.gotAttributes; |
1622 return state.attributes; | 1622 return state.attributes; |
1623 } | 1623 } |
1624 | 1624 |
1625 } // namespace WebCore | 1625 } // namespace WebCore |
OLD | NEW |