Commit 4854c788 authored by darin@apple.com's avatar darin@apple.com
Browse files

Reviewed by Adele.

        - http://bugs.webkit.org/show_bug.cgi?id=16443
          implement some missing Windows WebKit functions

        * DOMHTMLClasses.cpp:
        (DOMHTMLDocument::URL): Implemented.

        * WebActionPropertyBag.cpp:
        (WebActionPropertyBag::Read): Fixed the WebActionElementKey case. 



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0e07fe45
2007-12-14 Darin Adler <darin@apple.com>
Reviewed by Adele.
- http://bugs.webkit.org/show_bug.cgi?id=16443
implement some missing Windows WebKit functions
* DOMHTMLClasses.cpp:
(DOMHTMLDocument::URL): Implemented.
* WebActionPropertyBag.cpp:
(WebActionPropertyBag::Read): Fixed the WebActionElementKey case.
2007-12-14 Darin Adler <darin@apple.com>
 
Reviewed by Alexey.
......
......@@ -208,10 +208,13 @@ HRESULT STDMETHODCALLTYPE DOMHTMLDocument::domain(
}
HRESULT STDMETHODCALLTYPE DOMHTMLDocument::URL(
/* [retval][out] */ BSTR* /*result*/)
/* [retval][out] */ BSTR* result)
{
ASSERT_NOT_REACHED();
return E_NOTIMPL;
if (!result)
return E_POINTER;
*result = BString(static_cast<HTMLDocument*>(m_document)->URL()).release();
return S_OK;
}
HRESULT STDMETHODCALLTYPE DOMHTMLDocument::body(
......
......@@ -118,11 +118,8 @@ HRESULT STDMETHODCALLTYPE WebActionPropertyBag::Read(LPCOLESTR pszPropName, VARI
} else if (isEqual(pszPropName, WebActionElementKey)) {
if (const MouseEvent* mouseEvent = findMouseEvent(m_action.event())) {
IntPoint point(mouseEvent->clientX(), mouseEvent->clientY());
COMPtr<WebElementPropertyBag> elementPropertyBag;
elementPropertyBag.adoptRef(WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false)));
V_VT(pVar) = VT_UNKNOWN;
elementPropertyBag->QueryInterface(IID_IUnknown, (void**)V_UNKNOWNREF(pVar));
V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false));
return S_OK;
}
} else if (isEqual(pszPropName, WebActionButtonKey)) {
......
Supports Markdown
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