Commit 577e455b authored by sfalken's avatar sfalken

2006-06-03 Steve Falkenburg <sfalken@apple.com>

        Reviewed by hyatt.
        
        Add implementation of loadHTMLString for Spinneret

        * COM/WebFrame.cpp:
        (WebFrame::loadHTMLString):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a41fd2c4
......@@ -219,11 +219,21 @@ HRESULT STDMETHODCALLTYPE WebFrame::loadData(
}
HRESULT STDMETHODCALLTYPE WebFrame::loadHTMLString(
/* [in] */ BSTR /*string*/,
/* [in] */ BSTR /*baseURL*/)
/* [in] */ BSTR string,
/* [in] */ BSTR baseURL)
{
DebugBreak();
return E_NOTIMPL;
DeprecatedString htmlString((QChar*)string, SysStringLen(string));
if (baseURL) {
DeprecatedString baseURLString((QChar*)baseURL, SysStringLen(baseURL));
d->frame->begin(KURL(baseURLString));
}
else
d->frame->begin();
d->frame->write(htmlString);
d->frame->end();
return S_OK;
}
HRESULT STDMETHODCALLTYPE WebFrame::loadAlternateHTMLString(
......@@ -366,7 +376,7 @@ HRESULT WebFrame::loadDataSource(WebDataSource* dataSource)
String methodString(method, SysStringLen(method));
WebCore::TransferJob* job;
const FormData* formData = 0;
if (!wcscmp(method, TEXT("GET"))) {
if (wcscmp(method, TEXT("GET"))) {
WebMutableURLRequest* requestImpl = static_cast<WebMutableURLRequest*>(request);
formData = requestImpl->formData();
}
......
2006-06-03 Steve Falkenburg <sfalken@apple.com>
Reviewed by hyatt.
Add implementation of loadHTMLString for Spinneret
* COM/WebFrame.cpp:
(WebFrame::loadHTMLString):
2006-06-02 Steve Falkenburg <sfalken@apple.com>
Reviewed by darin.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment