Jacek Caban : mshtml: Added IHTMLDocument6:: get_documentMode implementation.
Alexandre Julliard
julliard at winehq.org
Wed Jul 6 09:57:30 CDT 2016
Module: wine
Branch: master
Commit: 6e2ebcd167d4aaa154425f47c5bb614021ab2b18
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e2ebcd167d4aaa154425f47c5bb614021ab2b18
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jul 5 22:47:14 2016 +0200
mshtml: Added IHTMLDocument6::get_documentMode implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmldoc.c | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 281c267..1c665b7 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -3053,12 +3053,31 @@ static HRESULT WINAPI HTMLDocument6_get_compatible(IHTMLDocument6 *iface,
return E_NOTIMPL;
}
-static HRESULT WINAPI HTMLDocument6_get_documentMode(IHTMLDocument6 *iface,
- VARIANT *p)
+static HRESULT WINAPI HTMLDocument6_get_documentMode(IHTMLDocument6 *iface, VARIANT *p)
{
HTMLDocument *This = impl_from_IHTMLDocument6(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+
+ static const int docmode_values[] = {
+ 5, /* DOCMODE_QUIRKS */
+ 7, /* DOCMODE_IE7 */
+ 8, /* DOCMODE_IE8 */
+ 9, /* DOCMODE_IE8 */
+ 10, /* DOCMODE_IE10 */
+ 11 /* DOCMODE_IE11 */
+ };
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ if(!This->doc_node) {
+ FIXME("NULL doc_node\n");
+ return E_UNEXPECTED;
+ }
+
+ assert(This->doc_node->document_mode < sizeof(docmode_values)/sizeof(*docmode_values));
+
+ V_VT(p) = VT_I4;
+ V_I4(p) = docmode_values[This->doc_node->document_mode];
+ return S_OK;
}
static HRESULT WINAPI HTMLDocument6_get_onstorage(IHTMLDocument6 *iface,
More information about the wine-cvs
mailing list