Commit Graph

  • dbc90a7216 fixed: float overlays table #251 Yuri Kobets 2023-02-17 11:18:51 +0300
  • 2c5077f351
    Merge pull request #253 from litehtml/inline_render_fix Yuri Kobets 2023-02-16 18:59:46 +0300
  • 4500b2d175 New tests and fixes for inline rendering Yuri Kobets 2023-02-16 18:40:17 +0300
  • 40d2071bd8 Improved support for the vertical-align property (inline elements) Yuri Kobets 2023-02-16 03:50:12 +0300
  • 4ab14c9ccb Added new rendering tests Yuri Kobets 2023-02-08 23:52:04 +0300
  • 8820b150ba fixed reference samples for rendering tests Yuri Kobets 2023-02-07 02:57:49 +0300
  • ededf2166e fix: render_item_table::_render must return minimum width including paddings/borders/margins Yuri Kobets 2023-02-07 02:55:01 +0300
  • 10fb697ff2 fixes in calculating line box width Yuri Kobets 2023-02-06 03:29:20 +0300
  • 9cfe3aae04 remove trailing spaces from the last line box Yuri Kobets 2023-02-06 00:49:10 +0300
  • fbe68e1676 optimization: removing std::dynamic_pointer_cast Yuri Kobets 2023-02-05 16:51:07 +0300
  • 4ea92870e8 optimizing inline rendering Yuri Kobets 2023-02-05 04:36:07 +0300
  • e01ca8ebdc fixed line box base line calculating Yuri Kobets 2023-02-05 02:30:44 +0300
  • 8f1d923d52 fix: vertical-align css property is not inherited Yuri Kobets 2023-02-05 01:49:12 +0300
  • a0c5fe8edd Fixed: use font height instead line height for inline boxes Yuri Kobets 2023-02-03 03:08:19 +0300
  • 756b247ecd Redesigned inline elements rendering Yuri Kobets 2023-02-01 03:42:58 +0300
  • 388a06dfcc fixed bug in inline elements rendering (#247) Yuri Kobets 2023-01-07 01:37:36 +0300
  • 1e803393bd Add styles for ins, del, s, and strike elements Ryan Schmidt 2023-01-05 12:09:33 -0600
  • 89a7d36df8 Add styles for cite element Ryan Schmidt 2023-01-05 10:54:48 -0600
  • d8f23728a8 Add styles for u element Ryan Schmidt 2023-01-05 10:51:03 -0600
  • 636ba5163a fixed: line-height calculation for line box. (#243) Yuri Kobets 2023-01-05 03:55:58 +0300
  • cd17480551
    Merge pull request #241 from stasoid/master Yuri Kobets 2022-12-20 18:46:39 +0300
  • 348bced729 add table-4-td-width.htm test stasoid 2022-12-20 19:41:27 +0600
  • f497c360cb add table-3-width.htm test stasoid 2022-12-20 19:31:43 +0600
  • 23109da384 add table-2-width.htm test stasoid 2022-12-20 18:48:25 +0600
  • cb36b5bc66 add line-height inheritance test stasoid 2022-12-20 18:27:54 +0600
  • 7c13c2ce65 fix t_strncasecmp t_strncasecmp("a\0a", "a\0b", 3) should be 0, not -1 stasoid 2022-12-15 00:51:21 +0600
  • a75a38df71 stop using std::stringstream because it is actually slower than std::string proof: https://tio.run/##rVPLbtswEDyLX7FlkICE5cDtUVJ876kf0BSCyofK2iINkkrRBv71qstQjmUEKFKkJ0n7mNmZXYnDYd0LMU1Xxor9KBU0D0pE57fkHAnRG9tfRDCkumEZEt@8s25LxoC1EKKsqtxXE3IllTZWwbALzHaDKjE/as3vSfFUmHtTg@rkz1bsndhVVTSDag/O2AhfVW8s3MFfqq37wXj9hIjQ9auhlZWvBD6gmqgZvQ4VXH@USc29pSWcFC0Q5Oi7aJxtRRdic5EajPAuKOGsDFuW2NdZHr8VbrSRcY6OkQdnJHzHCdvsYhsCy283SOVLQIAQM2ve2GlNNxDdTtlwLsldUu3NwMnjbEwO5z1CCDUptPPAgvml2ggGPdnU@GhmtNuUQB/ArFacFIhSGA3MwDss5AgATZMpEKnIn7nzs/mCoWOi9clphIoekcjxpcr/KDFxUfpWWQizulvoyt@XwlDHDI@3nk5q6IxlZ6cvZ5@b2fvNpgQqg9ZSB6lp2nr6P@hyMbSc50@wi@GxebOcOfekcdOUL8@mfDaMQmIqij7pwMzJgCSEE/K4GOHN5P/AjOfhVRy9TR4eyTT9Fnrf9WFaf/rwBw The situation is similar in clang and VS. stasoid 2022-12-14 23:50:34 +0600
  • f0ec9d18f2 cosmetics stasoid 2022-12-13 05:09:08 +0600
  • 5da4e69127
    Merge pull request #239 from TobiasBohnen/TobiasBohnen-patch-text-indent Yuri Kobets 2022-12-12 22:48:18 +0300
  • bea96f188c
    fixed text-indent TobiasBohnen 2022-12-12 20:07:22 +0100
  • 64ca561c49
    Merge pull request #238 from stasoid/master Yuri Kobets 2022-12-12 19:46:49 +0300
  • fd8f7e9fee test_container: update fonts/readme.txt stasoid 2022-12-12 13:04:02 +0600
  • 3ee3977bce test_container: implement draw_list_marker (only square bullets) stasoid 2022-12-12 07:19:00 +0600
  • 4f92aa42f0 test_container: implement draw_background only color, no images only 2 values of opacity are supported: color.alpha == 0 fully transparent color.alpha != 0 fully opaque stasoid 2022-12-12 06:31:35 +0600
  • fcd32a9b7f test_container: implement import_css stasoid 2022-12-12 06:03:29 +0600
  • 522524220f test_container: update fonts/readme.txt stasoid 2022-12-11 15:29:02 +0600
  • e8c0e3627a readfile: C -> C++ stasoid 2022-12-11 04:45:02 +0600
  • ad868a77f4 fix VS2019 warning about incorrect _errno dll linkage when compiling tests stasoid 2022-12-11 04:36:23 +0600
  • 778a6e2c63 Add render tests stasoid 2022-12-11 02:38:47 +0600
  • 314e5a5893
    Merge pull request #237 from stasoid/master Yuri Kobets 2022-12-10 01:03:57 +0300
  • d1380c9f60 fix #236 (incorrect table width) stasoid 2022-12-09 22:32:25 +0600
  • c46240eb7c distinguish between computed and used line-height (fixes #232) stasoid 2022-12-09 21:58:44 +0600
  • ae9fe10f48 Fix: font size without units (font-size: 20) is ignored Yuri Kobets 2022-12-06 00:41:29 +0300
  • 315ff22304
    Merge pull request #235 from stasoid/master Yuri Kobets 2022-12-06 00:04:30 +0300
  • de78f4b06c fix comments stasoid 2022-12-05 15:39:58 +0600
  • 2660bcff03 create html_tag constructor for anonymous wrapper boxes changed css_properties::compute signature because shared_from_this cannot be called during construction of *this stasoid 2022-12-05 15:28:37 +0600
  • 18fc38e66e add functions for easier debugging it is now possible to write el->select("#a") or el->id() == _a_ stasoid 2022-12-05 14:43:40 +0600
  • b60c18be32 spaces -> tabs stasoid 2022-12-05 14:25:35 +0600
  • 5ba6f8265a
    Merge pull request #230 from mgambrell/gumbo-fix-msc-ver Yuri Kobets 2022-12-03 14:53:14 +0300
  • 3c2cf6406e
    Merge pull request #231 from mgambrell/virtual-dtor Yuri Kobets 2022-12-03 14:53:00 +0300
  • 4d82733621 add missing virtual destructors mgambrell 2022-12-02 18:12:11 -0500
  • a3fbd370a0 gumbo.h (and others) has two problems among them: 1. #define _CRT_SECURE_NO_WARNINGS is done unconditionally (but what if I've already done it?) 2. #define fileno _fileno is done unconditionally.. this actually is more related to compiling against the windows platform than using MSC. anyway a simple way to resolve it is to conditionalize it. mgambrell 2022-12-02 17:59:40 -0500
  • 758c51cf6e make web_color::is_color return false for identifiers that don't represent color this fixes links with black background on Obama wiki stasoid 2022-12-01 18:50:39 +0600
  • df33364021 gdiplus_container: draw dotted, dashed and double borders - "dots" are squares - dashed border artifacts at corners are not handled - double border artifacts at corners are not handled stasoid 2022-12-01 16:41:45 +0600
  • 137038f94a
    Merge pull request #229 from BailiFlyingCat/master Yuri Kobets 2022-11-29 00:30:44 +0300
  • ed5a551ec1
    Merge pull request #228 from stasoid/master Yuri Kobets 2022-11-29 00:30:22 +0300
  • 11a681f5c8 Solve the problem that the parent class calls the subclass function in the destructor lich 2022-11-27 20:33:34 +0800
  • 6ff77337fd remove tests that don't test anything stasoid 2022-11-27 13:26:56 +0600
  • c38cff9e4e readd var() support I don't see any performance degradation on Obama wiki (which does not use vars) stasoid 2022-11-27 04:37:18 +0600
  • de4893f0b6 document::createFromString optimization: Move css property parsing from css_properties::parse (which is called from html_tag::parse_styles for every tree node) to style::add_property (which is called during stylesheet parsing). document::createFromString: 1287 ms -> 1048 ms on Obama wiki stasoid 2022-11-27 02:48:04 +0600
  • 25773b4943 This basically reverts commit 5a00888b "var()" to improve performance. I'll readd var() support later in a way that doesn't hurt performance so much. document::createFromString: 1730 ms -> 1287 ms on Obama wiki stasoid 2022-11-21 23:32:07 +0600
  • 0ba38c6bde remove style::m_valid_values stasoid 2022-11-18 19:50:07 +0600
  • 56c31aac10 remove attributes.h stasoid 2022-11-17 05:38:58 +0600
  • c61ede9dfa
    Merge pull request #227 from stasoid/master Yuri Kobets 2022-11-16 19:32:47 +0300
  • 3798ad6cf4 fix cssTest.cpp stasoid 2022-11-16 14:54:57 +0600
  • e02ac9ce74 add element::tag() method stasoid 2022-11-16 09:07:27 +0600
  • a060e727c8 move pseudo-class parameter parsing to css_element_selector::parse stasoid 2022-11-16 08:26:02 +0600
  • 7df81ba288 use string_id for tag names apply_stylesheet: 1050 ms stasoid 2022-11-15 21:02:00 +0600
  • 17f6854348 use string_id for class names I've kept m_str_classes too for convenience. apply_stylesheet: 1300 ms -> 1200 ms I don't understand why the gain is so small. This commit replaces string comparisons with int comparisons on a very hot path. stasoid 2022-11-15 19:30:32 +0600
  • 5707cf8a46 preparation before switching class names to string_id stasoid 2022-11-15 16:01:15 +0600
  • 78bb7b21c4 separate #name from [id=name] apply_stylesheet: 1300 ms stasoid 2022-11-15 15:34:53 +0600
  • 5a60cb868e separate .name from [class=name] stasoid 2022-11-15 15:25:22 +0600
  • e14622ad9e create select_attribute method stasoid 2022-11-15 07:12:08 +0600
  • 4dae578b09 create select_pseudoclass method to improve readability this also speeds up apply_stylesheet: 1710 ms -> 1550 ms on Obama wiki About 2/3 of the speedup is because parent() is not called every time. I don't know where the rest of the speedup comes from. stasoid 2022-11-14 09:38:55 +0600
  • 32744df44d select optimization: don't call get_attr for class selectors apply_stylesheet: 1883 ms -> 1710 ms on Obama wiki stasoid 2022-11-14 08:14:53 +0600
  • ac05726ac4 simplify class matching this also speeds up apply_stylesheet (2146 ms -> 1958 ms on Obama wiki) stasoid 2022-11-12 16:04:49 +0600
  • 07f940dffe small refactor stasoid 2022-11-12 14:20:31 +0600
  • 5ab0448dd5 rename m_class_values -> m_classes stasoid 2022-11-12 05:54:01 +0600
  • bd2bb6cb8c apply_stylesheet optimization: reject some non-matching rules quickly reduces apply_stylesheet time by 27% on Obama wiki (2910 ms -> 2120 ms) stasoid 2022-11-12 05:26:09 +0600
  • 3cfa3b2155 remove css_attribute_selector::class_val each .class has its own css_attribute_selector stasoid 2022-11-11 22:10:55 +0600
  • 8a191eb64e
    Merge pull request #226 from stasoid/master Yuri Kobets 2022-11-09 10:50:48 +0300
  • 71f8d71f52 add LITEHTML_NO_THREADS option (fixes #225) stasoid 2022-11-09 13:40:39 +0600
  • 7b09804fff
    Merge pull request #224 from stasoid/master Yuri Kobets 2022-11-08 16:01:32 +0300
  • d3335a4f16 cosmetics stasoid 2022-11-07 23:46:35 +0600
  • 9848d5b65b remove litehtml.sln stasoid 2022-11-07 23:25:42 +0600
  • d1179d5167 more wchar cleanup stasoid 2022-11-07 23:21:32 +0600
  • 8c7621034f parse_styles optimization: use string_id for CSS property names decreases parse_styles time by 37% (750 ms -> 468 ms on Obama wiki on my machine) stasoid 2022-11-07 22:11:00 +0600
  • f843d66fb3 win32_container: fixes for VS2022 stasoid 2022-11-07 14:53:32 +0600
  • 1a8b4c987e apply user css in document::append_children_from_string Yuri Kobets 2022-10-31 22:50:18 +0300
  • 3a7954d04e
    Merge pull request #222 from TobiasBohnen/TobiasBohnen-fix-font-weights Yuri Kobets 2022-10-31 21:25:53 +0300
  • d5ff5eb375
    added missing font weights to enum and string TobiasBohnen 2022-10-31 18:43:48 +0100
  • ab857afe9a
    added missing font weights to switch TobiasBohnen 2022-10-31 18:42:09 +0100
  • 6b38b1d4f1
    Merge pull request #221 from stasoid/master Yuri Kobets 2022-10-31 19:23:13 +0300
  • d00f5d032b create document_container.h/cpp stasoid 2022-10-30 19:07:55 +0600
  • 8927a44515 Remove litehtml::context, replace master.css -> master_css.h and make document::createFromString receive master/user css as strings closes issue #219 stasoid 2022-10-30 16:25:56 +0600
  • 2a3091d505 win32_container: fix incorrect text length computation stasoid 2022-10-30 13:21:49 +0600
  • 427b14aa2a
    Merge pull request #218 from stasoid/master Yuri Kobets 2022-10-21 16:44:07 +0300
  • a6177d1d5e remove wchar support closes issue #217 stasoid 2022-10-21 17:51:29 +0600
  • 4b44982c06
    Merge pull request #216 from stasoid/master Yuri Kobets 2022-10-18 22:25:04 +0300
  • 8e21841ad9 Update win32_container and gdiplus_container stasoid 2022-10-18 09:08:32 +0600