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

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


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

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

mshtml: Added IHTMLTxtRange::duplicate implementation.

---

 dlls/mshtml/txtrange.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/txtrange.c b/dlls/mshtml/txtrange.c
index 5b54451..0e90771 100644
--- a/dlls/mshtml/txtrange.c
+++ b/dlls/mshtml/txtrange.c
@@ -224,8 +224,15 @@ static HRESULT WINAPI HTMLTxtRange_parentElement(IHTMLTxtRange *iface, IHTMLElem
 static HRESULT WINAPI HTMLTxtRange_duplicate(IHTMLTxtRange *iface, IHTMLTxtRange **Duplicate)
 {
     HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
-    FIXME("(%p)->(%p)\n", This, Duplicate);
-    return E_NOTIMPL;
+    nsIDOMRange *nsrange = NULL;
+
+    TRACE("(%p)->(%p)\n", This, Duplicate);
+
+    nsIDOMRange_CloneRange(This->nsrange, &nsrange);
+    *Duplicate = HTMLTxtRange_Create(nsrange);
+    nsIDOMRange_Release(nsrange);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI HTMLTxtRange_inRange(IHTMLTxtRange *iface, IHTMLTxtRange *Range,
@@ -240,7 +247,7 @@ static HRESULT WINAPI HTMLTxtRange_isEqual(IHTMLTxtRange *iface, IHTMLTxtRange *
         VARIANT_BOOL *IsEqual)
 {
     HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
-    FIXME("(%p)->()\n", This);
+    FIXME("(%p)->(%p %p)\n", This, Range, IsEqual);
     return E_NOTIMPL;
 }
 




More information about the wine-cvs mailing list