Commit Graph

4111 Commits

Author SHA1 Message Date
Jacek Caban 9f75fb0cef mshtml: Get rid of no longer needed argument in get_nsstyle_* implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:46 +02:00
Jacek Caban 45e2ae4b74 mshtml: Introduce get_style_property_var helper and use it instead of get_nsstyle_attr_var in HTMLStyle implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Jacek Caban c49d9d021f mshtml: Use get_style_property instead of get_nsstyle_attr in HTMLStyle object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Jacek Caban 815370a841 mshtml: Rename get_style_attr to get_style_property.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Jacek Caban 5ea4f31861 mshtml: Refactor setting style property value implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Jacek Caban d7e1b9c085 mshtml: Clean up set_style_property_var prototype.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Jacek Caban c5e54a1ea1 mshtml: Store style property flags in an array and use it in set_nsstyle_attr and get_nsstyle_attr_var.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Michael Stefaniuc 12b85004aa mshtml: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:28:28 +02:00
Jacek Caban a660f673cb mshtml: Use DWORD for event id argument in node-specific event handlers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-16 21:28:44 +02:00
Jacek Caban 47df11ab6e mshtml: Expose window.performance property to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 21:52:52 +02:00
Jacek Caban 69d6ae3d8c mshtml: Add IHTMLPerformance::timing property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 21:52:49 +02:00
Jacek Caban dcfdcfea69 mshtml: Add IHTMLPerformance::navigation property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 21:52:47 +02:00
Jacek Caban 83f845dfa1 mshtml: Added IHTMLWindow7::performance property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-14 23:20:11 +02:00
Jacek Caban 8c48c632fc mshtml.idl: Added IHTMLPerformance test.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-13 22:13:27 +02:00
Jacek Caban 6f3f291c09 mshtml: Support input event.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:38:08 +02:00
Jacek Caban dac8036fb6 mshtml/tests: Silence noisy traces.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 18:13:22 +02:00
Michael Stefaniuc 6bc984a600 mshtml/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 16:34:06 +02:00
Jacek Caban d3a71dec7e mshtml: Use proper document mode for document fragment objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Jacek Caban c36bbc352e mshtml: Use case insensitive comparition in parse_ua_compatible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Jacek Caban 16ba7f4444 jscript: Added String.trim implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 19:40:22 +02:00
Jacek Caban ca313f57b1 mshtml: Expose IHTMLWindow7 interface to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 16:30:25 +02:00
Jacek Caban 127df7021d mshtml: Added IHTMLWindow7::innerWidth and innerHeight implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 16:30:23 +02:00
Jacek Caban b86825acf7 mshtml: Implement supported IHTMLWindow7 event properties.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 01:44:06 +02:00
Jacek Caban a30a445214 mshtml: Added IHTMLWindow7 stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 01:44:02 +02:00
Jacek Caban a67a3305d6 mshtml/tests: Added more COM aggregation tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:34 +02:00
Jacek Caban b952590f93 mshtml: Properly support COM aggregation in about and res protocol handlers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:32 +02:00
Jacek Caban 6c91835400 mshtml: Share more code between res and about protocol handlers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:16 +02:00
Jacek Caban 3f9038c6fc mshtml: Share the same structure for about and res protocols.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:14 +02:00
Jacek Caban ff829f0beb jscript: Support setting accessor property value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:12 +02:00
Jacek Caban fd91fe52b7 jscript: Support getting value of accessor property.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:08 +02:00
Jacek Caban d8aa26f660 jscript: Support accessor properties in getOwnPropertyDescriptor.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 15:33:06 +02:00
Jacek Caban f732bfc50e jscript: Added support for accessor properties in defineProperty.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 16:26:12 +02:00
Jacek Caban 5abb2ca6fc jscript: Added Object.defineProperties stub.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 16:26:10 +02:00
Jacek Caban 599769f857 jscript: Use jsdisp_define_property to set prototype constructors.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 16:26:07 +02:00
Jacek Caban 3767d63a1c jscript: Use jsdisp_define_property to set function prototypes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 16:26:05 +02:00
Jacek Caban 20007e586a jscript: Use jsdisp_define_data_property for arguments object properties.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-14 16:26:03 +02:00
Jacek Caban 6b1e54a28e jscript: Make global constants non-writable in ES5 mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 17:26:51 +02:00
Jacek Caban 83de7691c6 jscript: Add Object.defineProperty implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 17:26:51 +02:00
Jacek Caban 2538a74c80 jscript: Make RegExp object properties non-writable.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 00:39:51 +02:00
Jacek Caban 7f01473a38 jscript: Make Function instance object properties non-writable.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 00:39:49 +02:00
Jacek Caban a9f8c2c7c1 jscript: Make String.length non-writable.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 00:39:47 +02:00
Jacek Caban 551e5a77e2 jscript: Added Object.getOwnPropertyDescriptor implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 00:39:41 +02:00
Francois Gouget 4121ac052b mshtml: Make set_frame_doc() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-20 17:48:37 +02:00
Jacek Caban aa27dd07aa jscript: Added Date.prototype.toISOString implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 20:14:45 +02:00
Jacek Caban 3263d51a1f jscript: Allow using reserved words as identifiers in ES5 mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:27 +02:00
Jacek Caban cfb67712ce mshtml: Check if BSC is still attached to window before using it in OnRedirectVerifyCallback.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-20 23:20:10 +01:00
Jacek Caban e36b765be4 mshtml/tests: Added more IDOMEvent::preventDefault tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-08 09:24:22 -06:00
Jacek Caban 39766bcded mshtml: Use nsIDOMEvent directly to prevent default event handling in dispatch_event_object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-08 09:24:19 -06:00
Jacek Caban 3987d93992 jscript: Added Array.prototype.indexOf implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-02 10:54:32 +01:00
Jacek Caban 3bd3d559ce jscript: Added Array.isArray implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:27:45 +01:00
Jacek Caban af5edf9504 jscript: Added Date.now implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:27:32 +01:00
Jacek Caban ff54bafb43 mshtml: Use JScript extension for IE9+ mode support.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:27:27 +01:00
Jacek Caban be897e2d92 mshtml: Use SCRIPTLANGUAGEVERSION_5_7 for IE7 and IE5 compatibility mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:27:16 +01:00
Jacek Caban 667b3f0dff mshtml: Use IE8 compatibility mode for documents in standards mode in internet zone.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:27:11 +01:00
Jacek Caban c89fef781b mshtml: Merge propbag.c into pluginhost.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban f0372fbfbe mshtml: Merge ipwindow.c into pluginhost.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban 86bdba81ad mshtml: Merge htmlscreen.c into imnavigator.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban 92e3036c72 mshtml: Implement IOleDocumentView and IViewObjectEx interfaces in HTMLDocumentObj object instead of HTMLDocument.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban e55e6b8c45 mshtml: Implement IHTMLTextContainer interface directly in HTMLBodyElement object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban 49f20a5b74 mshtml: Merge htmltextcont.c into htmlbody.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 19:39:29 +01:00
Jacek Caban eb1494cec8 mshtml: Merge htmltablecell.c into htmltable.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:01 +01:00
Jacek Caban 865b93495c mshtml: Merge htmltablerow.c into htmltable.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban 6683740c66 mshtml: Merge htmloption.c into htmlselect.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban ecc6ee0810 mshtml: Merge htmlmeta.c into htmlhead.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban ac3b1f3201 mshtml: Merge htmlembed.c into htmlobject.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban 48365004b0 mshtml: Merge htmliframe.c into htmlframe.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban 1f8ff829d9 mshtml: Merge htmlframebase.c into htmlframe.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 18:21:00 +01:00
Jacek Caban 9ae8b8c00f mshtml: Support X-UA-Compatible HTTP header.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-26 20:18:34 +01:00
Andrey Gusev 80690ecf4d mshtml/tests: Use GetModuleHandleA instead of LoadLibraryA.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-26 16:40:22 +01:00
Jacek Caban dd78fd0966 mshtml: Set SCRIPTPROP_INVOKEVERSIONING based on document mode value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 21:46:28 +01:00
Jacek Caban 67de587f60 mshtml: Properly handle conditional comments in IE9+ modes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 21:46:28 +01:00
Jacek Caban 74d6c6d2fb mshtml: Properly support custom event listeners in XMLHttpRequest object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 21:46:28 +01:00
Jacek Caban d7c94cc7d8 mshtml: Register load, error and abort events directly in event target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 21:46:28 +01:00
Jacek Caban 5ec6b8f807 mshtml/tests: Fixed copy&paste typo in createDocumentFragment call.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 20:08:22 +01:00
Jacek Caban 113fc68259 mshtml: Forward IHTMLEventObj::toElement and fromElement implementation to IDOMMouseEvent.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:51:50 +01:00
Jacek Caban beb0b78a5a mshtml: Added IDOMMouseEvent::fromElement property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:51:48 +01:00
Jacek Caban c0d248f2a5 mshtml: Added IDOMMouseEvent::toElement property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:51:46 +01:00
Jacek Caban cf6d34d815 mshtml: Improved IDOMMouseEvent::offset[XY] stubs.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:51:44 +01:00
Jacek Caban 832b90d4a5 mshtml: Added IDOMMouseEvent::relatedTarget implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:56 +01:00
Jacek Caban ad1599f276 mshtml: Share more code between get_form implementations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:52 +01:00
Jacek Caban cff4612646 mshtml: Use get_element helper in IHTMLDocument3::get_documentElement implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:47 +01:00
Jacek Caban 62335569c4 mshtml: Get rid of no longer needed document argument from create_collection_from_nodelist and create_collection_from_htmlcol.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:44 +01:00
Jacek Caban 567f911fcf mshtml: Use get_element helper in IHTMLDocument2::elementFromPoint implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:40 +01:00
Jacek Caban d5a190b052 mshtml: Use get_element helper in IHTMLElement::get_offsetParent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban b304616f8a mshtml: Get rid of no longer needed document argument from get_element.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban ae4809c7d6 mshtml: Get rid of no longer needed document argument from create_all_list.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban dfc13245f1 mshtml: Get rid of no longer needed document argument from script_elem_from_nsscript.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban a19caad9d0 mshtml: Get rid of no loner needed document node reference in HTMLDOMChildrenCollection.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban 69af9a4c9d mshtml: Get rid of no longer needed document argument in get_node.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban 7586334008 mshtml/tests: Added more ownerDocument property tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban 23b1d3a79d mshtml: Get owner document from Gecko node in get_node.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:57:53 +01:00
Jacek Caban abd27e0926 mshtml: Added IDOMKeyboardEvent::which and IDOMMouseEvent::which properties implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-16 19:19:44 +01:00
Jacek Caban 881ba0627b mshtml: Added IDOMEvent::pageX and pageY properties implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 19:35:07 +01:00
Jacek Caban 5896677d9e mshtml: Added IDOMMouseEvent::buttons property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 19:35:06 +01:00
Jacek Caban 2e91bf3212 mshtml: Added IDOMEvent::view property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 19:35:04 +01:00
Jacek Caban ab210dd7a4 mshtml: Added IDOMEvent::stopImmediatePropagation implementaition.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 19:35:02 +01:00
Jacek Caban 886dfed9ba mshtml: Added SVG elements tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:30 +01:00
Jacek Caban b947229fa9 mshtml: Added support for non-HTML elements.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:28 +01:00
Jacek Caban a4ad2cf825 mshtml: Handle non-HTML element in IHTMLSelectElement:add implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:25 +01:00
Jacek Caban fba6da7982 mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement where possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:24 +01:00
Jacek Caban a219fd31d6 mshtml: Handle non-HTML elements in HTMLElement implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:22 +01:00
Jacek Caban 240fd267d9 mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement where possible in HTMLElement implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:20 +01:00
Jacek Caban 06d54a6eb3 mshtml: Use get_elem helper in IHTMLDocument2::get_body implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:17 +01:00
Jacek Caban 0666c6c2fd mshtml: Pass Gecko element as nsIDOMElement to check_event_attr.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 09:07:15 +01:00
Jacek Caban 364e1c87a5 mshtml: Use nsIDOMElement for Gecko elements in npplugin.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:42 +01:00
Jacek Caban 300c64603f mshtml: Return element as ndIDOMElement from create_nselem.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:41 +01:00
Jacek Caban 3e4565f5d7 mshtml: Pass Gecko elements as nsIDOMElement to element constructors.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:38 +01:00
Jacek Caban 339a5156f7 mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in get_font_size.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:36 +01:00
Jacek Caban b7e50ee92e mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in pluginhost.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:35 +01:00
Jacek Caban 5bc2d76b8c mshtml: Pass element as nsIDOMElement to create_param_prop_bag.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:33 +01:00
Jacek Caban 3cac8d223b mshtml: Pass element as nsIDOMElement to get_elem_attr_value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:31 +01:00
Jacek Caban 54a746f155 mshtml: Store Gecko element both as nsIDOMElement and nsIDOMHTMLElement in HTMLElement.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 11:02:28 +01:00
Jacek Caban f7b95a77c3 mshtml/tests: Run form element tests in both quirks and IE9 compat mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:55 +01:00
Jacek Caban 9623fcb474 mshtml: Fixed error handling in IHTMLElementCollection::item in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:53 +01:00
Jacek Caban 7da84dfe97 mshtml: Fixed error handling in IHTMLFormElement::item in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:52 +01:00
Jacek Caban 86475d5bab mshtml: Added IE9+ mode support to HTMLFormElement::elements property.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:50 +01:00
Jacek Caban 52c74af96b mshtml/tests: Run textarea tests in both quirks and IE9 compat mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:48 +01:00
Jacek Caban a25d8c342f mshtml: Always set valid IEventTarget vtbl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:46 +01:00
Jacek Caban 7280806672 mshtml: Store compat mode in dispex_data_t and use it in dispex_compat_mode when possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 21:07:43 +01:00
Jacek Caban d3cd6a3691 mshtml: Added IHTMLKeyboardEvent::location property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 22:22:53 +01:00
Jacek Caban b8c5f98c06 mshtml: Use IDOMKeyboardEvent instead of nsIDOMKeyEvent in IHTMLEventObj implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban 169fde0d58 mshtml: Expose IDOMKeyboardEvent to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban 4947c70fe2 mshtml: Added IDOMKeyboardEvent key state getters implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban e9f0b4ff61 mshtml: Added key and char code IDOMKeyboardEvent getters implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban fff36a7896 mshtml: Added IDOMKeyboardEvent stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban 20159346c7 mshtml: Expose IHTMLUIEvent to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Jacek Caban 18ae7c7deb mshtml: Added IDOMUIEvent::detail property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 10:01:04 +01:00
Jacek Caban f5a0252670 mshtml: Added IDOMUIEvent::initUIEvent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 10:01:02 +01:00
Jacek Caban 90bccb498a mshtml: Use nsIDOMUIEvent stored in DOMEvent in IHTMLEventObj::get_[xy] implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 10:00:58 +01:00
Jacek Caban 28e2f7a85e mshtml: Added IDOMUIEvent stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 10:00:55 +01:00
Jacek Caban 65ce11478c mshtml: Use IDOMMouseEvent instead of nsIDOMMouseEvent in IHTMLEventObj implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:31 +01:00
Jacek Caban 5711c85a20 mshtml: Expose IDOMMouseEvent to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:30 +01:00
Jacek Caban 05b0c8f72b mshtml: Added IDOMMouseEvent::initMouseEvent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:28 +01:00
Jacek Caban 17eb66c798 mshtml: Added IDOMMouseEvent::button property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:27 +01:00
Jacek Caban 6a16a5f424 mshtml: Added IDOMMouseEvent key state getters implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:25 +01:00
Jacek Caban feb957b276 mshtml: Added IDOMMouseEvent position getters implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:23 +01:00
Jacek Caban aa2be899a6 mshtml: Use DispDOMEvent for DOMEvent object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:22 +01:00
Jacek Caban a2d61dd4d7 mshtml: Added IDOMMouseEvent stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:33:20 +01:00
Michael Stefaniuc 11e706785e mshtml: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:25:00 +01:00
Alexandre Julliard 20074ac855 mshtml: Avoid using a global display DC.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-26 19:07:20 +01:00
Jacek Caban 07954f3621 mshtml: Added IDOMEvent::get_srcElement implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 21:25:30 +01:00
Jacek Caban 5dbf2726fe mshtml/tests: Skip test_listener_order tests on IE7.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-10 23:59:44 +01:00
Nikolay Sivov 3cb8e4bdc8 mshtml/tests: Skip some tests if native XMLHTTP support is missing or disabled.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 22:47:24 +01:00
Nikolay Sivov 53b73055b7 mshtml/tests: Remove null check after dereference (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 17:33:36 +01:00
Nikolay Sivov 286174a5ac mshtml/tests: Test document stream creation failure (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 17:33:34 +01:00
Alex Henrie 93eac48cc7 mshtml/tests: Add a trailing '\n' to ok() calls.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 17:33:30 +01:00
Francois Gouget a7c696aee9 mshtml: Make IEventTarget_{add,remove}EventListener_hook() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 16:12:19 +01:00
Francois Gouget 325f438a41 mshtml/tests: Fix typos in a few comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 16:12:17 +01:00
Jacek Caban c36b424ec2 mshtml: Don't dispatch load event if document is already detached from its window.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 15:52:22 +01:00
Jacek Caban e6f7a759ed mshtml/tests: Added a test of calls to functions from different frame.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-12 16:00:21 +01:00
Jacek Caban eaca5e023e mshtml/tests: Skip documentMode tests on IE7.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-11 18:21:24 +01:00
Jacek Caban c0f96a406f mshtml: Added IDOMEvent::get_timeStamp implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-05 20:31:13 +01:00
Jacek Caban afb0eeca01 mshtml/tests: Added more event object tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban 49679eb97b mshtml: Expose IDocumentEvent to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban d6d23a5339 mshtml: Added IDOMEvent::dispatchEvent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban 986f701cd4 mshtml: Don't store dispatch mode in DOMEvent object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban f0b3fe8f83 mshtml: Don't call preventDefault in stopPropagation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban 30e2762b82 mshtml: Added IDOMEvent::initEvent implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Nikolay Sivov 2b37b97d0c mshtml: Avoid potential moniker instance leak.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Jacek Caban 7076fc1340 mshtml: Added IDOMEvent::get_target implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:43:10 +01:00
Jacek Caban 49abeb63cb mshtml: Added IDOMEvent::get_currentTarget implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:43:07 +01:00
Jacek Caban e150f96a3e mshtml: Fixed event target leak in dispatch_event.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:43:04 +01:00
Jacek Caban 8600c2a573 mshtml: Ignore preventDefault calls for non-cancelable events.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:55 +01:00
Jacek Caban a27ad40e31 mshtml: Added IDOMEvent::get_cancelable implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:52 +01:00
Jacek Caban 4678a85966 mshtml: Added IDOMEvent::get_bubbles implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:50 +01:00
Jacek Caban 1508eb484f mshtml: Use IDOMEvent for IHTMLEventObj::get_type implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:47 +01:00
Jacek Caban dc5aefcebb mshtml: Added IDOMEvent::get_type implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:44 +01:00
Jacek Caban d121009f24 mshtml: Store event type string in DOMEvent object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 18:42:40 +01:00
Jacek Caban f39c6c3cbd mshtml: Silence some noisy FIXMEs.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:07:20 +01:00
Jacek Caban bb9bc082b7 mshtml: Pass listener type as a string to remove_event_listener.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:07:18 +01:00
Jacek Caban ebefab4b03 mshtml: Pass listener type as a string to get_listener_container.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:07:16 +01:00
Jacek Caban 26f731f4a0 mshtml: Store listener container type as a string.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:07:13 +01:00
Jacek Caban dda20ef4ec mshtml: Removed unused impl_from_DispatchEx.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:07:09 +01:00
Jacek Caban a0561068e3 mshtml: Return S_OK in IHTMLStyle2::put_behavior.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 19:08:32 +01:00
Jacek Caban ed62ae5faa mshtml: Added support for default removeEventListener capture argument.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 19:08:29 +01:00
Nikolay Sivov f6d58e69e1 mshtml/tests: Test return values in more places (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 16:09:54 +01:00
Jacek Caban d84f6f72cc mshtml: Hook addEventListener InvokeEx calls to allow capture default value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:03 +01:00
Jacek Caban 664e861cda mshtml: Added IHTMLDOMNode3::compareDocumentPosition implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-23 21:17:23 +01:00
Jacek Caban 52a5acaefb mshtml: Store task_magic in HTMLDocumentObj instead of HTMLDocument.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-23 21:17:21 +01:00
Jacek Caban deee158c00 mshtml: Removed no longer needed flush_pending_tasks.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-23 21:17:18 +01:00
Nikolay Sivov 0592537862 mshtml: Make sure actual host length matches returned BSTR length.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-22 18:42:27 +01:00
Jacek Caban 0f487987bc mshtml: Get rid of unneeded parent from NSContainer.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-22 18:29:39 +01:00
Jacek Caban 3dd152dc59 mshtml: Pass document as HTMLDocumentObj to update_doc.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-22 18:29:37 +01:00
Jacek Caban 4a13190da4 mshtml: Store IOleAdviseHolder in HTMLDocumentObj instead of HTMLDocument.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-22 18:29:34 +01:00
Jacek Caban e1c211eaee mshtml: Merge olewnd.c into oleobj.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 19:53:48 +01:00
Marcus Meissner ac7768bfce mshtml: Fixed a crash due to missing typelib marshalling on 64bit.
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-15 23:35:04 +01:00
Jacek Caban 2de948e86c mshtml: Merge hlink.c into persist.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:45 +01:00
Jacek Caban 3d505b12e3 mshtml: Added IDocumentSelector::querySelector implementation.
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 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 bbffabf1b1 mshtml: Added IDOMEvent::get_defaultPrevented implementation.
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 0bff85cd44 mshtml: Introduce variant_bool helper.
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 01dcb65847 mshtml/tests: Added script IE9+ event tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-01 23:16:08 +01:00
Jacek Caban 1366b33c81 mshtml: Expose IEventTarget to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-01 23:16:08 +01:00
Jacek Caban 0c0dd3d582 mshtml: Added DOMContentLoaded event implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-01 23:16:08 +01:00
Jacek Caban b77f7b54ce mshtml: Added support for VT_UI2 in IDispatchEx.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-01 23:16:08 +01:00
Jacek Caban d2552c06a0 mshtml: Release listeners in call_event_handlers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 19:34:06 +01:00
Jacek Caban 17d43ef54e mshtml: Don't set no_event_obj for XHR events.
It's no longer needed.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-25 19:13:35 +02:00
Jacek Caban b81eea83da mshtml/tests: Added addEventListener tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-25 19:13:29 +02:00
Jacek Caban 2bffe9af8d mshtml: Added support for capturing event phase.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-25 19:13:23 +02:00
Jacek Caban 8e32ee6aad mshtml: Added IDOMEvent::removeEventListener implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-25 19:13:18 +02:00