diff options
author | Ben Murdoch <benm@google.com> | 2010-06-15 19:36:43 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-06-16 14:52:28 +0100 |
commit | 545e470e52f0ac6a3a072bf559c796b42c6066b6 (patch) | |
tree | c0c14763654d84d37577dde512c3d3b4699a9e86 /WebCore/xml | |
parent | 719298a66237d38ea5c05f1547123ad8aacbc237 (diff) | |
download | external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.zip external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.gz external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.bz2 |
Merge webkit.org at r61121: Initial merge by git.
Change-Id: Icd6db395c62285be384d137164d95d7466c98760
Diffstat (limited to 'WebCore/xml')
-rw-r--r-- | WebCore/xml/XMLHttpRequest.cpp | 8 | ||||
-rw-r--r-- | WebCore/xml/XMLHttpRequest.idl | 4 | ||||
-rw-r--r-- | WebCore/xml/XSLStyleSheetLibxslt.cpp | 6 | ||||
-rw-r--r-- | WebCore/xml/XSLTProcessor.cpp | 4 | ||||
-rw-r--r-- | WebCore/xml/XSLTProcessorLibxslt.cpp | 2 |
5 files changed, 11 insertions, 13 deletions
diff --git a/WebCore/xml/XMLHttpRequest.cpp b/WebCore/xml/XMLHttpRequest.cpp index 5cde24d..831ada9 100644 --- a/WebCore/xml/XMLHttpRequest.cpp +++ b/WebCore/xml/XMLHttpRequest.cpp @@ -478,11 +478,7 @@ void XMLHttpRequest::send(Blob* body, ExceptionCode& ec) // FIXME: Should we set a Content-Type if one is not set. // FIXME: add support for uploading bundles. m_requestEntityBody = FormData::create(); -#if ENABLE(BLOB_SLICE) - m_requestEntityBody->appendFileRange(body->path(), body->start(), body->length(), body->modificationTime()); -#else - m_requestEntityBody->appendFile(body->path(), false); -#endif + m_requestEntityBody->appendItems(body->items()); } createRequest(ec); @@ -494,7 +490,7 @@ void XMLHttpRequest::send(DOMFormData* body, ExceptionCode& ec) return; if (m_method != "GET" && m_method != "HEAD" && m_url.protocolInHTTPFamily()) { - m_requestEntityBody = FormData::createMultiPart(*body, document()); + m_requestEntityBody = FormData::createMultiPart(body->items(), body->encoding(), document()); // We need to ask the client to provide the generated file names if needed. When FormData fills the element // for the file, it could set a flag to use the generated file name, i.e. a package file on Mac. diff --git a/WebCore/xml/XMLHttpRequest.idl b/WebCore/xml/XMLHttpRequest.idl index 3574766..58413ff 100644 --- a/WebCore/xml/XMLHttpRequest.idl +++ b/WebCore/xml/XMLHttpRequest.idl @@ -29,7 +29,9 @@ module xml { interface [ - CustomConstructor, + CanBeConstructed, + CustomConstructFunction, + V8CustomConstructor, CustomMarkFunction, EventTarget, NoStaticTables diff --git a/WebCore/xml/XSLStyleSheetLibxslt.cpp b/WebCore/xml/XSLStyleSheetLibxslt.cpp index c3feca9..10919ef 100644 --- a/WebCore/xml/XSLStyleSheetLibxslt.cpp +++ b/WebCore/xml/XSLStyleSheetLibxslt.cpp @@ -31,8 +31,8 @@ #include "Frame.h" #include "Node.h" #include "TransformSource.h" -#include "XMLTokenizer.h" -#include "XMLTokenizerScope.h" +#include "XMLDocumentParser.h" +#include "XMLDocumentParserScope.h" #include "XSLImportRule.h" #include "XSLTProcessor.h" #include "loader.h" @@ -148,7 +148,7 @@ bool XSLStyleSheet::parseString(const String& string, bool) if (Frame* frame = ownerDocument()->frame()) console = frame->domWindow()->console(); - XMLTokenizerScope scope(docLoader(), XSLTProcessor::genericErrorFunc, XSLTProcessor::parseErrorFunc, console); + XMLDocumentParserScope scope(docLoader(), XSLTProcessor::genericErrorFunc, XSLTProcessor::parseErrorFunc, console); const char* buffer = reinterpret_cast<const char*>(string.characters()); int size = string.length() * sizeof(UChar); diff --git a/WebCore/xml/XSLTProcessor.cpp b/WebCore/xml/XSLTProcessor.cpp index b530d52..97b5466 100644 --- a/WebCore/xml/XSLTProcessor.cpp +++ b/WebCore/xml/XSLTProcessor.cpp @@ -33,11 +33,11 @@ #include "FrameLoader.h" #include "FrameView.h" #include "HTMLDocument.h" -#include "HTMLTokenizer.h" // for parseHTMLDocumentFragment +#include "HTMLDocumentParser.h" // for parseHTMLDocumentFragment #include "Page.h" #include "Text.h" #include "TextResourceDecoder.h" -#include "XMLTokenizer.h" +#include "XMLDocumentParser.h" #include "loader.h" #include "markup.h" #include <wtf/Assertions.h> diff --git a/WebCore/xml/XSLTProcessorLibxslt.cpp b/WebCore/xml/XSLTProcessorLibxslt.cpp index 9c3fafd..4ac9f4c 100644 --- a/WebCore/xml/XSLTProcessorLibxslt.cpp +++ b/WebCore/xml/XSLTProcessorLibxslt.cpp @@ -35,7 +35,7 @@ #include "ResourceRequest.h" #include "ResourceResponse.h" #include "TransformSource.h" -#include "XMLTokenizer.h" +#include "XMLDocumentParser.h" #include "XSLStyleSheet.h" #include "XSLTExtensions.h" #include "XSLTUnicodeSort.h" |