- 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: https://svn.webkit.org/repository/webkit/trunk@28725
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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.
}
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(
} 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)) {