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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #include "core/xml/parser/XMLDocumentParserScope.h" | 60 #include "core/xml/parser/XMLDocumentParserScope.h" |
61 #include "core/xml/parser/XMLParserInput.h" | 61 #include "core/xml/parser/XMLParserInput.h" |
62 #include "platform/SharedBuffer.h" | 62 #include "platform/SharedBuffer.h" |
63 #include "platform/network/ResourceError.h" | 63 #include "platform/network/ResourceError.h" |
64 #include "platform/network/ResourceRequest.h" | 64 #include "platform/network/ResourceRequest.h" |
65 #include "platform/network/ResourceResponse.h" | 65 #include "platform/network/ResourceResponse.h" |
66 #include "platform/weborigin/SecurityOrigin.h" | 66 #include "platform/weborigin/SecurityOrigin.h" |
67 #include "wtf/StringExtras.h" | 67 #include "wtf/StringExtras.h" |
68 #include "wtf/TemporaryChange.h" | 68 #include "wtf/TemporaryChange.h" |
69 #include "wtf/Threading.h" | 69 #include "wtf/Threading.h" |
70 #include "wtf/UnusedParam.h" | |
71 #include "wtf/Vector.h" | 70 #include "wtf/Vector.h" |
72 #include "wtf/unicode/UTF8.h" | 71 #include "wtf/unicode/UTF8.h" |
73 | 72 |
74 using namespace std; | 73 using namespace std; |
75 | 74 |
76 namespace WebCore { | 75 namespace WebCore { |
77 | 76 |
78 using namespace HTMLNames; | 77 using namespace HTMLNames; |
79 | 78 |
80 // FIXME: HTMLConstructionSite has a limit of 512, should these match? | 79 // FIXME: HTMLConstructionSite has a limit of 512, should these match? |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 sax.initialized = XML_SAX2_MAGIC; | 1631 sax.initialized = XML_SAX2_MAGIC; |
1633 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1632 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1634 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1633 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1635 parseChunk(parser->context(), parseString); | 1634 parseChunk(parser->context(), parseString); |
1636 finishParsing(parser->context()); | 1635 finishParsing(parser->context()); |
1637 attrsOK = state.gotAttributes; | 1636 attrsOK = state.gotAttributes; |
1638 return state.attributes; | 1637 return state.attributes; |
1639 } | 1638 } |
1640 | 1639 |
1641 } // namespace WebCore | 1640 } // namespace WebCore |
OLD | NEW |