stasoid
cf500fdd63
make id and class selectors match case-sensitively in no quirks/limited quirks mode and case-insensitively in quirks mode
2024-04-26 19:20:30 +05:00
stasoid
60f29d1b14
match :is() selector
2024-04-26 14:11:07 +05:00
stasoid
c0a5f163e0
fix: selector p,
should be invalid
2024-04-26 13:54:03 +05:00
stasoid
2aa733dbc9
fix: names of pseudo-classes and pseudo-elements are case-insensitive
2024-04-26 13:29:23 +05:00
stasoid
dbc9096004
fix :first-of-type selector
2024-04-26 13:16:25 +05:00
stasoid
4fb076748f
fix: attribute name in attribute selector is ASCII case-insensitive
2024-04-26 12:51:48 +05:00
stasoid
9d51be5f47
parse :lang() selector
2024-04-26 12:28:50 +05:00
stasoid
48cd17bc49
fix VS warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied
2024-04-25 12:25:09 +05:00
Andy Maloney
dffdeb6c40
{style} Use "= default" where possible
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-equals-default.html
Part of #336
2024-04-24 22:32:16 +03:00
Andy Maloney
43d7d687ce
{style} Prefer brace list returns
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/return-braced-init-list.html
Part of #336
2024-04-23 23:36:51 +03:00
stasoid
053824996e
fix parsing selector [x|=a]
2024-04-23 10:28:22 +03:00
stasoid
639d44f645
fix #338
2024-04-23 10:28:22 +03:00
Yuri Kobets
554fcc70b4
fix: image::is_empty returns invalid value for type none ( #326 )
2024-04-23 03:07:22 +03:00
Andy Maloney
3b4c19abe3
{haiku} Fix debug output in LiteHtmlView::draw_borders()
...
Debug values of border widths were incorrect on output.
(I'm not building haiku - just noticed it when reading the code.)
2024-04-23 01:17:37 +03:00
stasoid
8bb0e8cd4c
cosmetics
2024-04-22 00:11:45 +03:00
stasoid
64e29c3a56
fix Visual Studio build
2024-04-22 00:11:45 +03:00
stasoid
0137aa400a
fix @import
2024-04-22 00:11:45 +03:00
Andy Maloney
5e74a761e6
Use std::make_unique for better readability
2024-04-22 00:08:15 +03:00
Andy Maloney
3bd39a2366
Two small fixes
...
- remove const on bool parameter
- replace problematic character encodings in comments in stylesheet.cpp
2024-04-22 00:07:20 +03:00
Andy Maloney
0a54185c81
Use emplace_back() to avoid temporary copies
...
Also:
- fix some instances of emplace_back() which were creating temporaries explicitly
- constify a var in element::parse_counter_tokens() to avoid a copy
- remove redundant function declaration for parse_gradient() (it's in the header already)
2024-04-20 04:30:07 +03:00
Andy Maloney
a55b89f012
Modernize some code based on static analysis
...
- replace deprecated c-style headers
- including iso646.h has no effect in C++
- use bool instead of int
- replace typedefs with "using"
2024-04-20 04:23:36 +03:00
Andy Maloney
a6eb6e6197
These strings are not modified, so pass by ref
...
Also use .empty() instead of equality.
2024-04-18 19:04:56 +03:00
Andy Maloney
9f1d7dccd7
{cmake} Add includes to add_library()
...
This makes the headers show up in IDEs as well as the source files.
2024-04-18 19:00:28 +03:00
Andy Maloney
e8a4b5d4a4
Use nullptr instead of 0
2024-04-18 18:59:36 +03:00
Andy Maloney
2752a1fa8c
document_container destructor should be virtual
2024-04-18 01:08:08 +03:00
Andy Maloney
556da8fbd7
Fix crash in html_tag::draw_background() when is_root & clip is nullptr
2024-04-17 23:10:39 +03:00
stasoid
8989903513
fix type selector case-sensitivity issue
2024-04-17 12:39:53 +03:00
Yuri Kobets
b53da3e508
added #include <cstdint> to fix compilation errors
2024-04-16 01:30:34 +03:00
Yuri Kobets
29c3d48820
Merge pull request #322 from stasoid/master
...
Add standard-compliant CSS parser
2024-04-16 01:25:55 +03:00
stasoid
f6ebf12e28
add comment
2024-04-15 06:37:06 +05:00
stasoid
75aec46870
cleanup
2024-04-13 13:12:00 +05:00
stasoid
58d274ce48
add comments for document::update_media_lists
2024-04-13 08:22:04 +05:00
stasoid
3a9fdeb828
handle font-family
2024-04-12 20:24:45 +05:00
stasoid
2f88717c55
handle text-decoration and cursor
2024-04-12 19:04:04 +05:00
stasoid
40750a2e28
cleanup
2024-04-12 18:12:33 +05:00
stasoid
1f812472a2
fix clang warnings
2024-04-11 13:27:30 +05:00
stasoid
5dc6f9153d
Merge remote-tracking branch 'upstream/master'
2024-04-11 13:06:19 +05:00
stasoid
5e7c2b7a14
cleanup
2024-04-11 12:55:25 +05:00
stasoid
e2a9c8af35
fix currentcolor bug
2024-04-10 12:31:47 +05:00
stasoid
8407a72bb0
fix litebrowser build
2024-04-10 11:08:07 +05:00
stasoid
78ca14ea32
support currentcolor
2024-04-10 10:23:38 +05:00
stasoid
41ce3de06f
web_color::from_ident -> parse_color
2024-04-10 09:52:46 +05:00
stasoid
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
2024-04-10 08:51:24 +05:00
Yuri Kobets
0c1b0c7baf
Removed unused variable in litehtml::flex_line::distribute_free_space
...
Issue #320
2024-04-10 03:03:07 +03:00
Yuri Kobets
b4d74c3889
removed debuging code ( #319 )
2024-04-10 02:56:33 +03:00
Petr Kobalicek
ccd05a010b
Fixed compiler warnings produced by gcc/clang at -Wall -Wextra levels
...
* delete called on non-final 'litehtml::line_box_item' that has
virtual functions but non-virtual destructor
* definition of implicit copy constructor for 'typed_int' is
deprecated because it has a user-provided copy assignment operator
* suggest braces around initialization of subobject
2024-04-10 02:54:38 +03:00
stasoid
4c26e02618
fix windows cmake build
2024-04-09 19:51:00 +05:00
stasoid
56d7222b08
fix font-weight
2024-04-09 19:25:07 +05:00
stasoid
40e06c0f45
cosmetics
2024-04-09 19:00:18 +05:00
stasoid
e381714a35
cleanup css_length.cpp
2024-04-09 18:45:32 +05:00