Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: Source/core/xml/parser/XMLDocumentParserLibxml2.cpp

Issue 13840007: Absolutify paths to platform/network. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 *
11 * This library is free software; you can redistribute it and/or 11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public 12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either 13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version. 14 * version 2 of the License, or (at your option) any later version.
15 * 15 *
16 * This library is distributed in the hope that it will be useful, 16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details. 19 * Library General Public License for more details.
20 * 20 *
21 * You should have received a copy of the GNU Library General Public License 21 * You should have received a copy of the GNU Library General Public License
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 "XMLDocumentParser.h" 28 #include "XMLDocumentParser.h"
29 29
30 #include <libxml/parser.h>
31 #include <libxml/parserInternals.h>
30 #include "CDATASection.h" 32 #include "CDATASection.h"
33 #include "CachedResourceLoader.h"
31 #include "CachedScript.h" 34 #include "CachedScript.h"
32 #include "Comment.h" 35 #include "Comment.h"
33 #include "CachedResourceLoader.h"
34 #include "Document.h" 36 #include "Document.h"
35 #include "DocumentFragment.h" 37 #include "DocumentFragment.h"
36 #include "DocumentType.h" 38 #include "DocumentType.h"
37 #include "ExceptionCodePlaceholder.h" 39 #include "ExceptionCodePlaceholder.h"
38 #include "Frame.h" 40 #include "Frame.h"
39 #include "FrameLoader.h" 41 #include "FrameLoader.h"
40 #include "FrameView.h" 42 #include "FrameView.h"
41 #include "HTMLEntityParser.h" 43 #include "HTMLEntityParser.h"
42 #include "HTMLHtmlElement.h" 44 #include "HTMLHtmlElement.h"
43 #include "HTMLLinkElement.h" 45 #include "HTMLLinkElement.h"
44 #include "HTMLNames.h" 46 #include "HTMLNames.h"
45 #include "HTMLStyleElement.h" 47 #include "HTMLStyleElement.h"
46 #include "HTMLTemplateElement.h" 48 #include "HTMLTemplateElement.h"
47 #include "ProcessingInstruction.h" 49 #include "ProcessingInstruction.h"
48 #include "ResourceError.h"
49 #include "ResourceHandle.h"
50 #include "ResourceRequest.h"
51 #include "ResourceResponse.h"
52 #include "ScriptElement.h" 50 #include "ScriptElement.h"
53 #include "ScriptSourceCode.h" 51 #include "ScriptSourceCode.h"
54 #include "ScriptValue.h" 52 #include "ScriptValue.h"
55 #include "SecurityOrigin.h" 53 #include "SecurityOrigin.h"
56 #include "TextResourceDecoder.h" 54 #include "TextResourceDecoder.h"
57 #include "TransformSource.h" 55 #include "TransformSource.h"
56 #include "XMLDocumentParserScope.h"
58 #include "XMLNSNames.h" 57 #include "XMLNSNames.h"
59 #include "XMLDocumentParserScope.h" 58 #include "core/platform/network/ResourceError.h"
60 #include <libxml/parser.h> 59 #include "core/platform/network/ResourceHandle.h"
61 #include <libxml/parserInternals.h> 60 #include "core/platform/network/ResourceRequest.h"
61 #include "core/platform/network/ResourceResponse.h"
62 #include <wtf/StringExtras.h>
62 #include <wtf/text/CString.h> 63 #include <wtf/text/CString.h>
63 #include <wtf/StringExtras.h>
64 #include <wtf/Threading.h> 64 #include <wtf/Threading.h>
65 #include <wtf/unicode/UTF8.h>
65 #include <wtf/UnusedParam.h> 66 #include <wtf/UnusedParam.h>
66 #include <wtf/Vector.h> 67 #include <wtf/Vector.h>
67 #include <wtf/unicode/UTF8.h>
68 68
69 #include <libxslt/xslt.h>
69 #include "XMLTreeViewer.h" 70 #include "XMLTreeViewer.h"
70 #include <libxslt/xslt.h>
71 71
72 using namespace std; 72 using namespace std;
73 73
74 namespace WebCore { 74 namespace WebCore {
75 75
76 class PendingCallbacks { 76 class PendingCallbacks {
77 WTF_MAKE_NONCOPYABLE(PendingCallbacks); WTF_MAKE_FAST_ALLOCATED; 77 WTF_MAKE_NONCOPYABLE(PendingCallbacks); WTF_MAKE_FAST_ALLOCATED;
78 public: 78 public:
79 ~PendingCallbacks() { } 79 ~PendingCallbacks() { }
80 static PassOwnPtr<PendingCallbacks> create() 80 static PassOwnPtr<PendingCallbacks> create()
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698