Jacek Caban : mshtml: Added IHTMLInputTextElement2:: selectionStart property implementation.
Alexandre Julliard
julliard at winehq.org
Thu Jun 15 15:34:20 CDT 2017
Module: wine
Branch: master
Commit: 03febf448e989afa92317e2ec045358a31c683cb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=03febf448e989afa92317e2ec045358a31c683cb
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Jun 15 13:47:37 2017 +0200
mshtml: Added IHTMLInputTextElement2::selectionStart property implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlinput.c | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmlinput.c b/dlls/mshtml/htmlinput.c
index c89dad6..00f714d 100644
--- a/dlls/mshtml/htmlinput.c
+++ b/dlls/mshtml/htmlinput.c
@@ -1263,15 +1263,34 @@ static HRESULT WINAPI HTMLInputTextElement2_Invoke(IHTMLInputTextElement2 *iface
static HRESULT WINAPI HTMLInputTextElement2_put_selectionStart(IHTMLInputTextElement2 *iface, LONG v)
{
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
- FIXME("(%p)->(%d)\n", This, v);
- return E_NOTIMPL;
+ nsresult nsres;
+
+ TRACE("(%p)->(%d)\n", This, v);
+
+ nsres = nsIDOMHTMLInputElement_SetSelectionStart(This->nsinput, v);
+ if(NS_FAILED(nsres)) {
+ ERR("SetSelectionStart failed: %08x\n", nsres);
+ return E_FAIL;
+ }
+ return S_OK;
}
static HRESULT WINAPI HTMLInputTextElement2_get_selectionStart(IHTMLInputTextElement2 *iface, LONG *p)
{
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+ INT32 selection_start;
+ nsresult nsres;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ nsres = nsIDOMHTMLInputElement_GetSelectionStart(This->nsinput, &selection_start);
+ if(NS_FAILED(nsres)) {
+ ERR("GetSelectionStart failed: %08x\n", nsres);
+ return E_FAIL;
+ }
+
+ *p = selection_start;
+ return S_OK;
}
static HRESULT WINAPI HTMLInputTextElement2_put_selectionEnd(IHTMLInputTextElement2 *iface, LONG v)
More information about the wine-cvs
mailing list