Commit Graph

258 Commits

Author SHA1 Message Date
Francois Gouget 0d5ee7c507 mshtml: Make HTMLStyle_init_dispex_info() 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-09-17 15:37:51 +02:00
Jacek Caban f274a198d2 mshtml: Expose CSS properties names from style object via IHTMLCSSStyleDeclaration dispids.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-12 23:15:38 +02:00
Jacek Caban 2e6598dc39 mshtml: Expose IHTMLCSSStyleDeclaration interface to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-12 23:15:36 +02:00
Jacek Caban d35e6feafa mshtml: Use dispex_compat_mode in update_filter.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-12 23:15:34 +02:00
Jacek Caban 9d22dc476f mshtml: Added IHTMLCSSStyleDeclaration::styleFloat property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 17:35:44 +02:00
Jacek Caban 9269cda82b mshtml: Added IHTMLCSSStyleDeclaration::removeProperty implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 18:18:27 +02:00
Jacek Caban 78b8ee543f mshtml: Added IHTMLCSSStyleDeclaration::get_cssText implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 18:18:12 +02:00
Jacek Caban 45f8c03cc7 mshtml: Added IHTMLCSSStyleDeclaration::put_cssStyle implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 18:18:10 +02:00
Jacek Caban 78d0aab45b mshtml: Added IHTMLCSSStyleDeclaration::cssFloat property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 18:18:08 +02:00
Jacek Caban f072744bc5 mshtml: Add IHTMLCSSStyleDeclaration2 stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-06 17:07:15 +02:00
Jacek Caban 619e15a3e6 mshtml: Added IHTMLCSSStyleDeclaration::zoom property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-06 17:07:15 +02:00
Jacek Caban 042fbbc5f3 mshtml: Added IHTMLCSSStyleDeclaration::opacity property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-06 17:07:15 +02:00
Jacek Caban 6ebfbcc687 mshtml: Added IHTMLCSSStyleDeclaration::backgroundClip property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-06 17:07:15 +02:00
Jacek Caban 827b23ed49 mshtml: Implement known IHTMLCSSStyleDeclaration BSTR properties.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-31 17:03:21 +02:00
Jacek Caban 587dcf6e35 mshtml: Implement known IHTMLCSSStyleDeclaration VARIANT properties.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-31 17:03:19 +02:00
Jacek Caban ddf29f93bb mshtml: Added IHTMLCSSStyleDeclaration stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-31 17:03:17 +02:00
Jacek Caban 869b447764 mshtml: Skip fixups in get_nsstyle_property_var in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:37 +02:00
Jacek Caban 8b998a7dd7 mshtml: Skip fixups in get_nsstyle_property in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:37 +02:00
Jacek Caban 1f122a29d9 mshtml: Skip var_to_nsstyle fixups in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:37 +02:00
Jacek Caban ec13283af2 mshtml: Skip set_style_property fixups in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:37 +02:00
Jacek Caban 7732b87901 mshtml: Move value fixups to set_style_property.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:37 +02:00
Jacek Caban b79b70f808 mshtml: Use generic value checks for IHTMLStyle::put_overflow implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:32 +02:00
Jacek Caban 8b9d570571 mshtml: Use generic value checks for IHTMLStyle::put_border*Style implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:30 +02:00
Jacek Caban 9cbf3dd83d mshtml: Use generic value checks for IHTMLStyle::put_textDecoration implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:27 +02:00
Jacek Caban 56d75ce16a mshtml: Use generic value checks for IHTMLStyle::put_backgroundRepeat implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:24 +02:00
Jacek Caban dd8f202e05 mshtml: Use generic value checks for IHTMLStyle::put_fontWeight implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:20 +02:00
Jacek Caban ab2bd77c08 mshtml: Use generic value checks for IHTMLStyle::put_fontVariant implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:13 +02:00
Jacek Caban 4c59ce88fa mshtml: Support using array to check for allowed values and use it in IHTMLStyle::put_fontStyle implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:09 +02:00
Jacek Caban a471f648ca mshtml: Pass style id instead of flags to var_to_styleval.
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 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 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 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 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 d25684d5ae mshtml: Don't emulate legacy style filters in compatibility mode >= IE10.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 15:29:44 +02:00
Jacek Caban 1dedd90e8c mshtml: Added support for non-pixel style values in IHTMLStyle::get_pixel* functions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 20:51:44 +02:00
Jacek Caban a6d35fdaa8 mshtml: Fixed leak in get_nsstyle_attr_nsval.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-06 21:27:45 +02:00
Nikolay Sivov 7846f0947a mshtml: Use proper constants as HRESULT return values.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 22:24:58 +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 49ceec53c4 mshtml: Make some functions 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>
2016-03-22 23:51:31 +09:00
Jacek Caban f7597a6a1f mshtml: Merge htmlstyle3.c into htmlstyle.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 21:37:04 +09:00
Jacek Caban d223037034 mshtml: Merge htmlstyle2.c into htmlstyle.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 21:36:53 +09:00
Nikolay Sivov 8dd3f7d8c4 mshtml: Make it clear that ATTR_FIX_PX and ATTR_FIX_URL as exclusive (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>
2015-11-11 19:18:14 +09:00
Jacek Caban 76f7be04c7 mshtml: Added IHTMLStyle::styleFloat attribute implementation. 2014-12-15 19:16:54 +01:00