Commit Graph

  • d9565ee928 deduplicate prepare_color_points stasoid 2024-05-16 15:31:10 +0500
  • 38180d37da fix VS and gcc warnings stasoid 2024-05-16 12:24:35 +0500
  • 08c647aea1 simplify things by making background_layer::color_point::offset and hint to always be between 0 and 1, even for conic gradients (so offset and hint for conic gradients are measured in turns instead of degrees now) stasoid 2024-05-16 11:46:52 +0500
  • 60bd9f18f1 implement gradient color transition hints stasoid 2024-05-16 11:23:33 +0500
  • c80a2a08e9 use optional<css_length> in gradient::color_stop unitless 0 is a valid length value, stop using it as a <no length> value stasoid 2024-05-16 07:53:54 +0500
  • bb60063a62 fix repeating-conic-gradient stasoid 2024-05-16 07:19:17 +0500
  • d3092ca1a8 test_container: fix gradient position stasoid 2024-05-15 13:52:18 +0500
  • 423bb82412 canvas_ity: handle zero radius of radial gradient stasoid 2024-05-15 11:26:40 +0500
  • 62de3475f3 test_container: add ability to use background repeat styles with gradient images stasoid 2024-05-15 10:53:10 +0500
  • 3af10950e7 fix conic-gradient-2.htm stasoid 2024-05-14 21:56:48 +0500
  • 869a3cd8ea test_container, canvas_ity: implement conic-gradient stasoid 2024-05-14 13:54:27 +0500
  • 70fafc0b86 test_container, canvas_ity: implement radial-gradient Radial gradient supported by canvas_ity is different (two circles vs one ellipse in CSS), so I implemented new brush type, css_radial. It is created with canvas::set_css_radial_gradient(). stasoid 2024-05-14 07:30:03 +0500
  • d8a612adc6 add 2 linear-gradient tests stasoid 2024-05-13 21:53:39 +0500
  • eadeeefbd9 test_container, canvas_ity: do not linearize colors to match Chrome/Firefox gradient rendering stasoid 2024-05-13 19:22:28 +0500
  • 55e9fef61c test_container: support linear-gradient (no-repeat only) stasoid 2024-05-13 09:03:39 +0500
  • b256f6bcb5 fix unitless width/height attributes of <img> stasoid 2024-05-12 20:30:37 +0500
  • 725c4bcbc8 test_container: support image scaling stasoid 2024-05-12 20:03:21 +0500
  • 0a07f85f81 test_container: simplify draw_borders stasoid 2024-05-12 19:03:24 +0500
  • 7b0d9e33a5 test_container: remove unused code stasoid 2024-05-12 18:29:57 +0500
  • 44ac33f825 test_container: convert to using canvas_ity stasoid 2024-05-12 18:23:04 +0500
  • c268ac29e8 Revert "undo some recent style changes" Yuri Kobets 2024-05-11 17:58:02 +0300
  • f429a3a101 disable gumbo warnings in VS add_compile_options(/wd4244 /wd4267) is deliberately placed separately from target_include_directories(${PROJECT_NAME} PRIVATE visualc/include): - if add_compile_options is placed after target_include_directories, options are not applied - if target_include_directories is placed together with add_compile_options (before add_library) then cmake fails Looks like add_compile_options should be called before add_library, and target_include_directories should be called after add_library. stasoid 2024-05-11 12:44:32 +0500
  • 966e24a561 handle height attribute of table, tr, td/th stasoid 2024-05-11 11:29:15 +0500
  • 1611b789f1 don't ignore @import after bad rules stasoid 2024-05-11 10:09:55 +0500
  • c51f0defba render_test: getcwd is redundant stasoid 2024-05-10 12:21:40 +0500
  • ddbdf8a67a add padding test stasoid 2024-05-10 11:50:20 +0500
  • 430d5a127f render_test: add ability to run standalone (without gtest) stasoid 2024-05-10 10:07:58 +0500
  • 3c72715e6c undo some recent style changes stasoid 2024-05-09 21:49:15 +0500
  • 953f40b2ef Update to latest gumbo-parser David Cheng 2024-05-06 17:28:24 -0400
  • e3f481f705 spaces -> tabs in some places stasoid 2024-05-02 09:20:27 +0500
  • 9136086b2c fix subtest d in media.htm failing when compiled with gcc abs() in eval_op() in media_query.cpp is abs(int) instead of abs(float) after switching from <math.h> to <cmath> Minimal example: https://tio.run/##RYuxCsIwEEBn7ysOXNqhjoJt7Chk6SSI43lJayBJS3MVQfx1Y8HB5T148HiaqoE5562L7BdjUbkxyWwptPBvHEjuLUDvRxJ8kF8sHlF3J93p87UBcFEwkItFiS/YJDF1zeMiqBTSLRWH/Q6r31c28M75w72nIeXqQt6vtE@ZafVkDUVx/AU stasoid 2024-05-02 08:29:14 +0500
  • 402288c2cb add comment stasoid 2024-05-02 06:37:47 +0500
  • 28c46cdaf7 don't test unused functionality stasoid 2024-05-02 06:33:19 +0500
  • 0e2dd95528 remove cssTest.cpp and mediaQueryTest.cpp, they are covered by render tests now stasoid 2024-05-02 06:30:47 +0500
  • e207a989f9 add media query tests, fix @media not unknown stasoid 2024-05-02 06:23:36 +0500
  • 99dd1ffec7 test_container: support images stasoid 2024-05-01 16:40:19 +0500
  • 78ad19a0fd test_container: support nbsp stasoid 2024-05-01 09:45:34 +0500
  • 3c2ca4fbbc render_test: remove redundant resize stasoid 2024-05-01 07:59:14 +0500
  • c09be97184
    Merge pull request #347 from stasoid/master Yuri Kobets 2024-04-29 21:00:40 +0300
  • 59cdf6b5a7 Fix this gcc error: litehtml/include/litehtml/document.h:75:14: error: declaration of ‘litehtml::mode litehtml::document::mode() const’ changes meaning of ‘mode’ [-fpermissive] 75 | mode mode() const { return m_mode; } | ^~~~ stasoid 2024-04-29 21:26:27 +0500
  • 98e1ed5d46 s.empty() -> s == "" stasoid 2024-04-29 20:52:32 +0500
  • 9e96cd0e25 Revert "{style} Prefer .empty() for readability" stasoid 2024-04-29 20:48:14 +0500
  • 621c0ad9a3 Merge remote-tracking branch 'upstream/master' stasoid 2024-04-29 20:43:15 +0500
  • 4c3e774bbf add selector tests for 8 previous commits stasoid 2024-04-29 20:13:34 +0500
  • ca693a290e support selector_list in :nth-child(an+b of selector_list) stasoid 2024-04-29 19:16:30 +0500
  • 2fdfbdfcdc fix matching selector :nth-child(an+b) when a < 0 stasoid 2024-04-29 18:38:10 +0500
  • feb47e3c5b {style} Prefer .empty() for readability Andy Maloney 2024-04-26 10:42:46 -0400
  • 3c6d4e8c81 {style} Prefer range-based loops Andy Maloney 2024-04-26 10:37:12 -0400
  • 412fdc227e Use parens in macro Andy Maloney 2024-04-26 10:29:33 -0400
  • c25af5240b Ensure border style is initialized Andy Maloney 2024-04-26 10:23:04 -0400
  • cf500fdd63 make id and class selectors match case-sensitively in no quirks/limited quirks mode and case-insensitively in quirks mode stasoid 2024-04-26 18:59:25 +0500
  • 60f29d1b14 match :is() selector stasoid 2024-04-26 14:11:07 +0500
  • c0a5f163e0 fix: selector p, should be invalid stasoid 2024-04-26 13:54:03 +0500
  • 2aa733dbc9 fix: names of pseudo-classes and pseudo-elements are case-insensitive stasoid 2024-04-26 13:29:23 +0500
  • dbc9096004 fix :first-of-type selector stasoid 2024-04-26 13:16:25 +0500
  • 4fb076748f fix: attribute name in attribute selector is ASCII case-insensitive stasoid 2024-04-26 12:48:34 +0500
  • 9d51be5f47 parse :lang() selector stasoid 2024-04-26 12:28:50 +0500
  • 48cd17bc49 fix VS warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied stasoid 2024-04-25 12:25:09 +0500
  • dffdeb6c40 {style} Use "= default" where possible Andy Maloney 2024-04-24 11:26:06 -0400
  • 43d7d687ce {style} Prefer brace list returns Andy Maloney 2024-04-23 14:43:28 -0400
  • 053824996e fix parsing selector [x|=a] stasoid 2024-04-23 09:01:42 +0500
  • 639d44f645 fix #338 stasoid 2024-04-23 08:20:02 +0500
  • 554fcc70b4 fix: image::is_empty returns invalid value for type none (#326) Yuri Kobets 2024-04-23 03:07:22 +0300
  • 3b4c19abe3 {haiku} Fix debug output in LiteHtmlView::draw_borders() Andy Maloney 2024-04-22 16:42:01 -0400
  • 8bb0e8cd4c cosmetics stasoid 2024-04-21 15:59:38 +0500
  • 64e29c3a56 fix Visual Studio build stasoid 2024-04-21 14:29:28 +0500
  • 0137aa400a fix @import stasoid 2024-04-21 14:28:52 +0500
  • 5e74a761e6 Use std::make_unique for better readability Andy Maloney 2024-04-20 19:43:23 -0400
  • 3bd39a2366 Two small fixes Andy Maloney 2024-04-20 19:39:52 -0400
  • 0a54185c81 Use emplace_back() to avoid temporary copies Andy Maloney 2024-04-18 18:20:45 -0400
  • a55b89f012 Modernize some code based on static analysis Andy Maloney 2024-04-18 17:10:52 -0400
  • a6eb6e6197 These strings are not modified, so pass by ref Andy Maloney 2024-04-18 12:01:30 -0400
  • 9f1d7dccd7 {cmake} Add includes to add_library() Andy Maloney 2024-04-18 11:22:41 -0400
  • e8a4b5d4a4 Use nullptr instead of 0 Andy Maloney 2024-04-18 11:42:00 -0400
  • 2752a1fa8c document_container destructor should be virtual Andy Maloney 2024-04-17 18:05:08 -0400
  • 556da8fbd7 Fix crash in html_tag::draw_background() when is_root & clip is nullptr Andy Maloney 2024-04-17 15:54:12 -0400
  • 8989903513 fix type selector case-sensitivity issue stasoid 2024-04-17 14:01:38 +0500
  • b53da3e508 added #include <cstdint> to fix compilation errors Yuri Kobets 2024-04-16 01:30:34 +0300
  • 29c3d48820
    Merge pull request #322 from stasoid/master Yuri Kobets 2024-04-16 01:25:55 +0300
  • f6ebf12e28 add comment stasoid 2024-04-15 06:37:06 +0500
  • 75aec46870 cleanup stasoid 2024-04-13 13:12:00 +0500
  • 58d274ce48 add comments for document::update_media_lists stasoid 2024-04-13 08:22:04 +0500
  • 3a9fdeb828 handle font-family stasoid 2024-04-12 20:24:45 +0500
  • 2f88717c55 handle text-decoration and cursor stasoid 2024-04-12 18:48:00 +0500
  • 40750a2e28 cleanup stasoid 2024-04-11 18:36:57 +0500
  • 1f812472a2 fix clang warnings stasoid 2024-04-11 13:27:30 +0500
  • 5dc6f9153d Merge remote-tracking branch 'upstream/master' stasoid 2024-04-11 13:06:19 +0500
  • 5e7c2b7a14 cleanup stasoid 2024-04-11 12:55:25 +0500
  • e2a9c8af35 fix currentcolor bug stasoid 2024-04-10 12:31:47 +0500
  • 8407a72bb0 fix litebrowser build stasoid 2024-04-10 11:08:07 +0500
  • 78ca14ea32 support currentcolor stasoid 2024-04-10 10:23:38 +0500
  • 41ce3de06f web_color::from_ident -> parse_color stasoid 2024-04-10 09:52:46 +0500
  • ab216b2f15 fix linux build * gcc 9.4 doesn't support non-ascii identifiers (ε 🡒 epsilon, π 🡒 pi) * media_query.cpp: '<=' 🡒 u'⩽' to fix gcc warning, media_query.cpp now has UTF-8 BOM for Visual Studio, alternatively /utf-8 compiler switch can be used stasoid 2024-04-10 08:51:24 +0500
  • 0c1b0c7baf Removed unused variable in litehtml::flex_line::distribute_free_space Yuri Kobets 2024-04-10 03:03:07 +0300
  • b4d74c3889 removed debuging code (#319) Yuri Kobets 2024-04-10 02:56:05 +0300
  • ccd05a010b Fixed compiler warnings produced by gcc/clang at -Wall -Wextra levels Petr Kobalicek 2024-04-09 21:05:27 +0200
  • 4c26e02618 fix windows cmake build stasoid 2024-04-09 19:51:00 +0500
  • 56d7222b08 fix font-weight stasoid 2024-04-09 19:25:07 +0500
  • 40e06c0f45 cosmetics stasoid 2024-04-09 19:00:18 +0500
  • e381714a35 cleanup css_length.cpp stasoid 2024-04-09 18:45:32 +0500