Jacek Caban : mshtml: Added IHTMLTxtRange::collapse implementation.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 13 06:31:46 CDT 2007


Module: wine
Branch: master
Commit: b4bbffc64a94527a5c598dfaa029e66d6f9ee9e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b4bbffc64a94527a5c598dfaa029e66d6f9ee9e5

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Aug 12 17:44:19 2007 +0200

mshtml: Added IHTMLTxtRange::collapse implementation.

---

 dlls/mshtml/txtrange.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/txtrange.c b/dlls/mshtml/txtrange.c
index 0e90771..ae90e81 100644
--- a/dlls/mshtml/txtrange.c
+++ b/dlls/mshtml/txtrange.c
@@ -261,8 +261,11 @@ static HRESULT WINAPI HTMLTxtRange_scrollIntoView(IHTMLTxtRange *iface, VARIANT_
 static HRESULT WINAPI HTMLTxtRange_collapse(IHTMLTxtRange *iface, VARIANT_BOOL Start)
 {
     HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
-    FIXME("(%p)->(%x)\n", This, Start);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%x)\n", This, Start);
+
+    nsIDOMRange_Collapse(This->nsrange, Start != VARIANT_FALSE);
+    return S_OK;
 }
 
 static HRESULT WINAPI HTMLTxtRange_expand(IHTMLTxtRange *iface, BSTR Unit, VARIANT_BOOL *Success)




More information about the wine-cvs mailing list