| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "core/platform/network/ResourceResponse.h" | 60 #include "core/platform/network/ResourceResponse.h" |
| 61 #include "core/xml/parser/XMLDocumentParserScope.h" | 61 #include "core/xml/parser/XMLDocumentParserScope.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> |
| 68 | 68 |
| 69 #include <libxslt/xslt.h> | 69 #include <libxslt/xslt.h> |
| 70 #include "XMLTreeViewer.h" | 70 #include "core/xml/XMLTreeViewer.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 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 |