Commit Graph

951 Commits

Author SHA1 Message Date
stasoid
916576c0ca cleanup web_color.cpp 2024-04-09 16:45:53 +05:00
stasoid
8007e72dcd move gradient parsing to gradient.cpp 2024-04-09 15:57:11 +05:00
stasoid
9324c9a06f ensure CSS tokenizer always works on a valid UTF-8 string 2024-04-09 15:17:48 +05:00
stasoid
dd140a1707 use litehtml::variant with property_value 2024-04-09 14:36:53 +05:00
stasoid
c8f138623a fix VS warnings 2024-04-09 14:24:13 +05:00
stasoid
3154b7248d cleanup html.h 2024-04-09 14:20:10 +05:00
stasoid
7065da66f2 Merge remote-tracking branch 'upstream/master' 2024-04-09 13:17:47 +05:00
stasoid
3226d74add Add standard-compliant css parser 2024-04-09 10:12:46 +05:00
Yuri Kobets
b5ab35fa12 container_cairo_pango: select font from list of available fonts 2024-04-01 15:59:08 +03:00
Yuri Kobets
c2ec531164 Support for default value of the var() function. 2024-04-01 11:07:14 +03:00
Yuri Kobets
c32755a46e added support for 'and' and 'only' in media queries 2024-04-01 02:47:33 +03:00
Yuri Kobets
6266c01d1b don't draw background images/gradients for empty origin box 2024-03-31 19:02:58 +03:00
Yuri Kobets
a75d841493 fixed: property 'background: #FF00FF none' doesn't parsed 2024-03-31 18:08:42 +03:00
Yuri Kobets
e32bcf584a removed assert from html_tag::get_property 2024-03-31 18:06:47 +03:00
Yuri Kobets
6249f6dd89 fixed: container_cairo_pango doesn't use specified fonts 2024-03-31 13:38:50 +03:00
Yuri Kobets
05d1c82b5c fixed compile warnings on Windows 2024-03-31 03:28:27 +03:00
Yuri Kobets
9aa61b2daa windows: added new files to the project file 2024-03-31 02:41:10 +03:00
Yuri Kobets
b9ec0c5047 utf8: replace some other wchar with char32_t in utf8 code 2024-03-31 00:25:44 +03:00
Yuri Kobets
66e0f0cc32 utf8: use char32_t in utf8 conversions.
utf8_to_wchar is renamed to utf8_to_utf32
wchar_to_utf8 is renamed to utf32_to_utf8
2024-03-31 00:25:44 +03:00
Yuri Kobets
fbabb7e625 Fix: one brake tag is 'eaten' in line with double break 2024-03-30 19:02:36 +03:00
Yuri Kobets
135fbdcae3
Merge pull request #309 from stasoid/master
Convert property_value to use std::variant
2024-03-29 11:11:50 +03:00
stasoid
54646bdbda Merge remote-tracking branch 'upstream/master' 2024-03-29 08:59:35 +05:00
Yuri Kobets
215172d6d7 fix test_container 2024-03-29 03:04:40 +03:00
Yuri Kobets
2f207bc349 cairo_container: apply repeat-x/repeat-y to the gradients 2024-03-29 03:04:40 +03:00
Yuri Kobets
8f647f1188 Some fixes in gradients parsing and rendering
* Issues with multiline in gradient definitions
* Parsing angles
* Preprocess transparent color
2024-03-29 03:04:40 +03:00
Yuri Kobets
3307c8d875 Added support for repeating gradients 2024-03-29 03:04:40 +03:00
Yuri Kobets
7d1ca0328f Added support for conic gradient 2024-03-29 03:04:40 +03:00
Yuri Kobets
333109cd75 some cleaning 2024-03-29 03:04:40 +03:00
Yuri Kobets
18cc822603 Fixed origin top/height for radial gradient 2024-03-29 03:04:40 +03:00
Yuri Kobets
3fdf6f6303 fixed tests building and failed tests 2024-03-29 03:04:40 +03:00
Yuri Kobets
c09b943216 draw radial gradient 2024-03-29 03:04:40 +03:00
Yuri Kobets
9cbf84edc6 Parse radial gradient 2024-03-29 03:04:40 +03:00
Yuri Kobets
7630fb6bfb Implement unitless color-stop-list for linear gradient 2024-03-29 03:04:40 +03:00
Yuri Kobets
e455a0b50f Background draw redesigned. Linear gradient support. 2024-03-29 03:04:40 +03:00
Yuri Kobets
ada51ffd00 Un-quote url for @import css rule 2024-03-29 03:04:40 +03:00
Yuri Kobets
9a6f1d9892 Support for inherit value for he background property 2024-03-29 03:04:40 +03:00
Yuri Kobets
58a1db79b9 Background parsing fixex. Added support for linear gradient 2024-03-29 03:04:40 +03:00
faywong
270b7389d1 Fix build error caused by non-const copy ctor of cairo_surface_wrapper
Detailed error context: 
containers/cairo/cairo_images_cache.h:64:11: note: in instantiation of template class 'std::__value_type<std::string, cairo_surface_wrapper>' requested here
                if(iter != m_images.end())

MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__utility/pair.h:54:5: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const
    pair(pair const&) = default;
2024-03-27 17:17:50 +03:00
stasoid
60d912a5be get_color_property -> get_property<web_color>, etc. 2024-03-23 21:04:52 +05:00
stasoid
55612fcc7c Convert property_value to use std::variant 2024-03-23 20:07:28 +05:00
stasoid
365f6b1333 encoding: update comments for recent changes in the standard (prepend -> restore) 2024-03-23 14:11:19 +05:00
stasoid
7417d5122c fix possible out-of-bounds 2024-03-08 08:12:27 +05:00
stasoid
434054cf76 fix Visual Studio warnings 2024-03-07 17:18:48 +03:00
stasoid
986a9c53a6 add test for utf_8_decoder 2024-03-07 17:18:48 +03:00
stasoid
151195200b deverbose iso_2022_jp_decoder 2024-03-07 17:18:48 +03:00
stasoid
c81d16368b implement "prescan the byte stream to determine its encoding" 2024-03-07 17:18:48 +03:00
stasoid
2ff30d5e6b fix UTF-16 decoder 2024-03-07 17:18:48 +03:00
stasoid
a2b0035649 remove some litehtml:: from document.h 2024-03-05 12:11:29 +03:00
stasoid
6e8d17269e move some related functions closer together in document.cpp 2024-03-05 12:11:29 +03:00
stasoid
b0ba5199ad remove many litehtml:: from document.cpp 2024-03-05 12:11:29 +03:00