Commit Graph

417 Commits

Author SHA1 Message Date
Jacek Caban eafbe884a2 mshtml: Use variant_bool helper where appropriate.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 19:12:08 +01:00
Jacek Caban c29d776de8 mshtml: Rename fire_event_obj and dispatch_event.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-20 18:59:37 +02:00
Jacek Caban 8c74926bf9 mshtml: Added IDocumentEvent::createEvent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-19 17:16:00 +02:00
Jacek Caban 6dc67c4234 mshtml: Use event target vtbl to set current window event in fire_event_obj.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-19 17:15:54 +02:00
Jacek Caban 57b830526b mshtml: Use event target vtbl to construct target chain in fire_event_obj.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-19 17:15:51 +02:00
Jacek Caban ec5d0d44ba mshtml: Call default event handles through event target vtbl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-18 17:13:58 +02:00
Jacek Caban 0c35bf7c8e mshtml: Use vtbl to get ConnectionPointContainer from event target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-18 17:13:53 +02:00
Jacek Caban e5c0759c0c mshtml: Use separated struct for event target vtbl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-18 17:13:50 +02:00
Jacek Caban e38c2ceb51 mshtml: Use window event target instead of body only for selected event properties.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-17 09:00:36 +02:00
Jacek Caban 353d9d826a mshtml: Simplify IHTMLElement::click implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-12 15:59:40 +02:00
Jacek Caban 35ebf6756a mshtml: Added IDocumentEvent stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 19:49:29 +02:00
Jacek Caban e6778fe023 mshtml: Inherit document mode from parent document.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-29 18:08:06 +02:00
Jacek Caban 1b09514c82 mshtml: Initialize DispatchEx in HTMLDOMNode_Init.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 08:30:40 +02:00
Jacek Caban 68b8b7b4ba mshtml: Added IHTMLDocument7::getElementsByClassName implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban b244182bae mshtml: Added IHTMLDocument7::head property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban 2936f11351 mshtml: Expose IHTMLDocument7 interface to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban 8546c6a55b mshtml: Added implementation of IHTMLDocument7 event handler properties for supported events.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban 3c92286b54 mshtml: Forward common function from IHTMLDocument7 to IHTMLDocument2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban 697f1cb60f mshtml: Added IHTMLDocument7::get_defaultView implementation and use it for get_parentWindow implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:02 +02:00
Jacek Caban 2fc598ddb0 mshtml: Added IHTMLDocument7::get_characterSet implementation and use it in get_charset.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:01 +02:00
Francois Gouget e462c9ae11 mshtml: Make HTMLDocumentNode_init_dispex_info() static.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Jacek Caban d631268fa1 mshtml: Properly expose IHTMLDocument6 interface to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 16:59:08 +02:00
Jacek Caban f84d1f0aac mshtml: Added IHTMLDocument6::getElementById implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 16:59:05 +02:00
Jacek Caban 856dc7eda4 mshtml: Added delayed DispatchEx init support and use it to expose IHTMLDOMNode3 from document node.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:41:19 +09:00
Jacek Caban bec8063948 mshtml: Return documentMode as VT_R4.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:37:48 +09:00
Jacek Caban d3d8d4f37a mshtml: Use IE version dependent on compatibility mode for conditional comments.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-09 16:37:43 -05:00
Jacek Caban ce80f1e49d mshtml: Added separated IE5 and quicks mode compatibility mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-09 16:37:42 -05:00
Jacek Caban 97c71b25fe mshtml: Added GetClassInfo implementation for HTMLElement objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 13:58:51 +02:00
Jacek Caban 18309c575a mshtml: Added IProvideMultipleTypeInfo stub implementation for HTMLDocument object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 13:58:31 +02:00
Jacek Caban 4632045f9a mshtml: Replace get_htmldoc_classinfo with more generic helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 18:58:48 +02:00
Jacek Caban 9141c97d94 mshtml: Silence failing QueryInterfaces common for .net applications.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-13 16:15:11 +02:00
Jacek Caban 7f6b21e1c5 mshtml: Added IHTMLDocument5::onmousewheel property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jacek Caban c058ce52c0 mshtml: Added IHTMLDocument7::onchange property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jacek Caban e51ece778f mshtml: Added IHTMLDocument4::onselectionchange property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jacek Caban 59e146562c mshtml: Added IHTMLDocument7::onscroll property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jacek Caban 8dce1975aa mshtml: Added IHTMLDocument5::onfocusin and onfocusout properties implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:47 +01:00
Jacek Caban 74a759673d mshtml: Use inner window's event target for body element.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:48:53 +01:00
Jacek Caban ebee2a8346 mshtml: Added MHTMLDocument object implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-06 13:49:01 +01:00
Jacek Caban 6e94b955c2 mshtml: Added support for COM aggregation in HTMLDocument object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Jacek Caban 2fb4de7b5e mshtml: Renamed unk_imp to outer_unk.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:38 +01:00
Jacek Caban 0e8c7bece6 mshtml: Added MHTMLDocument object class factory stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 15:51:37 +01:00
Jacek Caban 4823119a79 mshtml: Initialize nsAString in IHTMLDocument3::get_dir.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 11:24:32 +01:00
Jacek Caban cb11d67035 mshtml: Added IHTMLDocument3::dir property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-16 13:20:10 -06:00
Jacek Caban 87f7aea1ca mshtml: Reimplement IHTMLDocument5::get_compatMode based on document mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:45 +09:00
Jacek Caban 73bdf9d926 mshtml: Expose IHTMLDocument6 to IDispatch.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:23 +09:00
Jacek Caban 6e2ebcd167 mshtml: Added IHTMLDocument6::get_documentMode implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:19 +09:00
Jacek Caban fd2f645d16 mshtml: Moved dispex_data_t pointer to the end of dispex_static_data_t struct.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:53:45 +09:00
Francois Gouget c242e00b8c mshtml: Fix a typo in a TRACE() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:27:37 +09:00
Jacek Caban 22eab07811 mshtml: Added IHTMLDocument2::put_domain implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 00:58:55 +09:00
Jacek Caban 92300cc4dc mshtml: Added IDocumentSelector::querySelectorAll implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:18 +09:00
Jacek Caban 5dddf32c20 mshtml: Added IDocumentSelector stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:18 +09:00
Jacek Caban 3a16c8bbca mshtml: Wine Gecko 2.47 release.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 13:43:54 +09:00
Jacek Caban 5910925728 mshtml: Added IHTMLDocument2::get_defaultCharset implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 01:56:07 +09:00
Jacek Caban a52cb2b87a mshtml: Added IHTMLUniqueName::get_uniqueID implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-11 22:16:23 +09:00
Jacek Caban 8f6097a99b mshtml: Added IHTMLDocument3::uniqueID implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:03 +09:00
Jacek Caban 67014b7cf9 mshtml: Added IHTMLDocument4::hasFocus implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:36 +01:00
Jacek Caban 808c2d6c7f mshtml: Added support for getElementsByTagName in document fragment nodes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:15 +09:00
Dmitry Timoshkov 3662980f41 mshtml: Add IHTMLEditServices stub implementation.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 23:35:25 +09:00
Jacek Caban 7950f780df mshtml: Get rid of no longer needed detach_event argument. 2015-05-21 13:55:03 +09:00
Jacek Caban 189cb568ee mshtml: Use vtbl for binding to event in attach_event. 2015-05-21 13:54:58 +09:00
Jacek Caban 4686f3d761 mshtml: Removed unneeded argument from ensure_nsevent_handler. 2015-05-18 14:06:29 +09:00
Jacek Caban 760f9de851 mshtml: Pass EventTarget to update_cp_events. 2015-05-15 18:06:05 +09:00
Jacek Caban 21151f3ec6 mshtml: Pass EventTarget to detach_event. 2015-05-15 18:06:01 +09:00
Jacek Caban 513c77d9e4 mshtml: Pass EventTarget to attach_event. 2015-05-15 18:05:57 +09:00
Jacek Caban f908f03cd9 mshtml: Added new EventTarget struct representing event targets. 2015-05-15 18:05:27 +09:00
Jacek Caban 25b4d6be68 mshtml: Use return_nsstr helper in IHTMLDocument5::get_compatMode. 2015-03-02 13:48:41 +09:00
Jacek Caban 32f177ae30 mshtml: Added execCommand("fontsize") support. 2015-02-16 19:18:38 +09:00
Jacek Caban 7a89732f73 mshtml: Added IHTMLDocument2::ondblclick property implementation. 2015-02-04 20:32:08 +09:00
Francois Gouget ec8002425a mshtml: Make create_document_fragment() static. 2015-01-05 20:16:50 +01:00
Jacek Caban 127aa62a70 mshtml: Use document encoding for scripts. 2014-12-30 15:57:43 +01:00
Jacek Caban 5135144d3a mshtml: Correctly handle NULL active element in IHTMLDocument2::get_activeElement. 2014-12-24 14:31:28 +01:00
Jacek Caban 8bfbe61386 mshtml: Treat empty bstrHref as not specified in IHTMLDocument2::createStyleSheet. 2014-12-23 17:20:56 +01:00
Jacek Caban 6b463d8509 mshtml: Added support for copy, paste and cut commands in execCommand. 2014-12-10 19:32:32 +01:00
Jacek Caban 71cb0cea74 mshtml: Added "indent" command support to execCommand. 2014-12-01 18:34:17 +01:00
Jacek Caban c910c8ceed mshtml: Added fontname command support to execCommand. 2014-11-26 17:35:12 +01:00
Jacek Caban a0d1d8cd27 mshtml: Added IHTMLDocument2::execCommand implementation. 2014-11-25 16:35:05 +01:00
Jacek Caban f5e3281a80 mshtml: Wine Gecko 2.34 release. 2014-11-03 20:52:52 +09:00
Jacek Caban 114f32c8b6 mshtml: Return S_OK in IHTMLDocument3::recalc. 2014-10-20 14:02:20 +09:00
Jacek Caban 845f5cccf0 mshtml: Moved READYSTATE to string conversion to separated function. 2014-10-09 17:37:08 +02:00
Jacek Caban fc38aea9ba mshtml: Don't assume that nsIDOMHTMLElement inherits from nsIDOMNode in HTMLDocument_createStyleSheet.
This will change after the next Gecko update.
2014-09-30 17:37:01 +02:00
Jacek Caban fbe02eb74c mshtml: Added IHTMLDocument5::get_implementation implementation. 2014-08-22 15:35:22 +02:00
Zhenbo Li 4719c438a9 mshtml: Added IHTMLDocument2:toString method. 2014-06-12 18:05:10 +02:00
Jacek Caban 4745fd03d4 mshtml: Call unlink from HTMLDOMNode::Release. 2014-06-11 13:04:00 +02:00
Jacek Caban cac04a675c mshtml: Use debugmsg_mshtml_guid in a few more places. 2014-05-08 12:14:21 +02:00
Jacek Caban a36876e9d6 mshtml: Introduce a new debugstr_mshtml_guid helper for printing GUIDs. 2014-04-28 14:37:00 +02:00
Jacek Caban e5dbd6e9f0 mshtml: Added IHTMLDocument7 stub implementation. 2014-03-13 20:22:07 +01:00
Jacek Caban f2676d3729 mshtml: Merge htmldoc3.c into htmldoc.c. 2014-03-13 20:22:06 +01:00
Jacek Caban e7553b56fe mshtml: Moved htmldoc5.c content into htmldoc3.c. 2014-03-12 19:02:15 +01:00
Jacek Caban 9c45b34c62 mshtml: Bind events not sent to default view to body element instead of directly to target. 2014-03-11 19:39:39 +01:00
Jacek Caban 1918d7223e mshtml: Added IHTMLDocument2::get_activeElement implementation. 2014-02-14 11:59:17 +01:00
Frédéric Delanoy ff9bbe3721 mshtml: Constify a character string. 2013-12-17 08:45:44 +01:00
Nikolay Sivov e07dabf2d9 mshtml: Use defined dispid instead of a magic value. 2013-08-30 14:28:57 +02:00
Jacek Caban c7417e4528 mshtml: Added IHTMLDocument2::get_scripts implementation. 2013-08-28 16:14:37 +02:00
Jacek Caban 9fd6401898 mshtml: Pass proper JSContext to nsIDOMHTMLDocument::Write and Open. 2013-04-29 14:55:48 +02:00
Piotr Caban b885ce8f55 mshtml: Allocate smaller cookies buffer size in HTMLDocument_get_cookie. 2013-04-24 14:33:05 +02:00
Jacek Caban 0a346e2102 mshtml: Added partial IHTMLDocument2::put_designMode implementation. 2013-04-23 15:35:03 +02:00
Jacek Caban af6c518e7d mshtml: Use lazy allocation for connection points. 2013-03-15 16:18:05 +01:00
Jacek Caban 07e72de9a4 mshtml: Get rid of PRUint32 outside XPCOM C API. 2013-01-23 20:47:25 +01:00
Jacek Caban 7ac09e721c mshtml: Properly report history update for location.replace call. 2012-11-12 16:35:15 +01:00
Jacek Caban 163970c336 mshtml: Create script element in IHTMLDocument::createStyleSheet. 2012-10-11 20:20:56 +02:00