Commit Graph

187 Commits

Author SHA1 Message Date
lich
11a681f5c8 Solve the problem that the parent class calls the subclass function in the destructor 2022-11-27 20:33:34 +08:00
stasoid
6ff77337fd remove tests that don't test anything 2022-11-27 13:26:56 +06:00
stasoid
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
2022-11-27 02:48:04 +06:00
stasoid
f843d66fb3 win32_container: fixes for VS2022 2022-11-07 14:53:32 +06:00
stasoid
2a3091d505 win32_container: fix incorrect text length computation 2022-10-30 13:21:49 +06:00
stasoid
a6177d1d5e remove wchar support
closes issue #217
2022-10-21 17:51:29 +06:00
stasoid
8e21841ad9 Update win32_container and gdiplus_container 2022-10-18 09:13:45 +06:00
Yuri Kobets
1aeade0c8c fixed: memory leak in container_linux::text_width 2022-09-27 17:41:50 +03:00
Tig Kindel
8aa119c59b removed .orig files 2022-08-10 15:18:56 -06:00
Tig Kindel
1c4c9b49a8 merge 2022-08-10 15:17:19 -06:00
stasoid
ea3c8f7f33 cairo_container: fix handling of invalid list-style-image
page: https://en.wikipedia.org/wiki/UTF-8#Invalid_sequences_and_error_handling
culprit: ul{list-style-image:url(/w/skins/Vector/resources/common/images/bullet-icon.svg?d4515)}
(invalid because svg is not supported)
2022-03-26 20:12:55 +06:00
Yuri Kobets
5193a0af5c container_linux: avoid repeated loading of failed images 2021-11-08 00:48:00 +03:00
Yuri Kobets
91774bbc39 Fixed bug in Cairo CSS font handling (Windows) 2021-11-07 19:25:07 +03:00
Yuri Kobets
7d234d9a7e Use pango library as text renderer for container_linux 2021-11-07 03:53:00 +03:00
Yuri Kobets
1458495dd4 Merge branch 'master' of github.com:litehtml/litehtml 2021-11-05 20:22:19 +03:00
Yuri Kobets
beeb735ed3 Fixed bugs in fonts handling in container_linux 2021-11-05 20:21:49 +03:00
Yuri Kobets
eda357bded Fixed build errors on Windows 2021-11-05 03:33:14 +03:00
Yuri Kobets
aaf3fba8ed Updated container_linux 2021-11-05 01:47:15 +03:00
Yuri Kobets
58e92d6dc6 Extended support for ordered lists.
Supported list-style-type: decimal, decimal-leading-zero, lower/upper-latin, lower/upper-alpha, lower/upper-roman, lower-greek
2020-05-10 02:55:34 +03:00
Alex Zhondin
948930ad35 support ordered lists 2020-05-09 13:44:24 +03:00
Charlie Kindel
97f92ca720 Support font names surrounded by single quotes 2020-02-16 17:26:19 +01:00
Charlie Kindel
da936b351e Merge branch 'master' of tig:tig/litehtml 2020-02-16 16:44:40 +01:00
Charlie Kindel
433da5df8c Fix for building litehtmlbrowser in VS2016 2020-02-16 16:44:23 +01:00
Adam Fowler
eb433d8d66 Added rendering of html string 2020-01-01 10:44:08 -05:00
Adam Fowler
911a6daf73 Added rendered message sending 2019-12-31 11:47:37 -05:00
Adam Fowler
4a58d5099d First Haiku container implementation 2019-12-30 15:52:30 +00:00
Sky Morey
cd15b54730 Added testing 2019-08-17 20:26:08 -05:00
Yuri Kobets
7abfe7d83e cairo_container: compilation error fix for UTF8 configuration 2018-09-10 23:12:21 +03:00
NikitaFeodonit
3104c078dc Convert line delimiters to Unix style. 2018-05-25 17:05:49 +03:00
Yuri Kobets
013b065e94 Added support for custom color names. 2016-08-01 21:40:56 +03:00
Yuri Kobets
1ac842dd5f Fill media.width and media.height 2016-05-19 15:56:58 +03:00
Yuri Kobets
dfc2b9cfd5 Compile failed with gcc (fixes issue #33)
Updated container_linux for latest changes in litehtml.
2015-09-13 15:16:37 +03:00
Yuri Kobets
fcb2ac8fcc Some changes in containers to pass const shared_ptr<>& 2015-07-10 00:50:50 +03:00
Yuri Kobets
14208ecda0 using override keyword in cairo_container
added default implementation for document_container::link function
2015-07-06 23:39:44 +03:00
Yuri Kobets
192987ecc9 Fixed all bugs. Rendering working well. 2015-06-30 01:23:58 +03:00
Yuri Kobets
5c4ca572d5 Fixed linux container for the latest litehtml 2015-06-21 23:49:13 +03:00
Yuri Kobets
019969e721 Some fixes after merging latest pull requests 2015-06-21 22:24:51 +03:00
Julien Hamaide
3fdac9f1ce Support for lang selector 2015-06-20 23:43:28 +02:00
Yuri Kobets
0052754401 Some improvements int CMakeLists.txt and linux container. 2015-06-10 23:21:58 +03:00
Yuri Kobets
14fd7f4f7b Updated container_linux for the latest version of litehtml
Add CMakeLists.txt file to build litehtml with cmake
2015-06-02 01:00:20 +03:00
Yuri Kobets
ec0aa7c059 Merge pull request #10 from FishingCactus/fix_const_accessors_upstream
Constness with accessors
2015-05-18 17:16:44 +03:00
Pieter Vantorre
6a1475ed81 updated containers 2015-05-18 14:08:30 +02:00
Yuri Kobets
a03b171034 Added "litehtml::document* doc" parameter into document_container::create_element 2015-05-11 00:47:05 +03:00
Yuri Kobets
5f8874dacd draw_borders now accept litehtml::borders as parameter.
updated cairo_container for new draw_borders parameters and some fixes with the borders appearance.
2015-04-26 23:03:33 +03:00
Yuri Kobets
214558eaf5 Apply border radius to the boxes with hidden overflow. 2015-04-26 15:57:59 +03:00
Yuri Kobets
341f2a1ad4 Fixed: borders are not visible for <img> tag with border-radius.
Improvement: litehtml always convert border-radius units into px (even percent).
2015-04-12 19:54:13 +03:00
Yuri Kobets
7687d4f8c7 Added border-radius with percent value into cairo_container 2015-04-02 23:21:29 +03:00
Yuri Kobets
6fcafb1e03 Using shared_ptr for images in Win32 cairo_container. 2015-03-26 23:16:58 +03:00
Yuri Kobets
320b3beeb0 reset display in to block for floating elements
added attributes parameter into document_container::create_element
2015-01-11 04:15:05 +03:00
Yuri Kobets
944e023921 one small fix in the cairo_font to use the default font if the mapping failed. 2015-01-02 20:02:58 +03:00
Yuri Kobets
f074332c4c fixed some problems with fonts in cairo_container 2015-01-02 00:04:35 +03:00
Yuri Kobets
81af2a8162 fixed linux container 2014-10-23 02:41:48 +04:00
Yuri Kobets
4da59f1a89 tokenize function is replaced to split_string.
some fixes in CSS parsing.
2014-10-21 00:10:16 +04:00
Yuri Kobets
5630d68bc4 added cairo_container::remove_image, add_image with NULL image does not remove image from cache 2014-10-07 02:57:01 +04:00
Yuri Kobets
3454b1b7a1 delete image from cache by passing NULL into cairo_container::add_image 2014-10-06 06:29:48 +04:00
Yuri Kobets
3ca5fe3a7e container_linux is updated for latest litehtml changes 2014-10-05 06:03:25 +04:00
Yuri Kobets
5230f28ac7 Improved UTF8 support
define LITEHTML_UTF8 to compile litehtml with UTF8 support on Windows
document_container::toupper and document_container::tolower are replaced with
document_container::transform_text.
Added document::createFromUTF8 to parse UTF8 source.
Added word break on chars in CJK characters range.
2014-09-26 02:55:59 +04:00
Yuri Kobets
95c9efe9ac Added "bool root" parameter into document_container::draw_borders
This parameter is true for the root element (<html>).
2014-09-04 07:36:40 +04:00
yuri.kobets@gmail.com
f5d988a454 Updated cairo_container_linux for API changes 2014-08-14 18:39:01 +00:00
yuri.kobets@gmail.com
8a50df45b0 Added support for CSS media (@media at-rule, media attribute in <style> and <link> tags).
Fixed: the elements with the fixed position ignore the mouse events.
Fixed: Bugs when compile solution with Microsoft Visual Studio Express 2013 for Windows Desktop.
2014-08-14 00:24:07 +00:00
yuri.kobets@gmail.com
d3c9c5df6f Some optimization in tables rendering. 2014-07-28 21:45:20 +00:00
yuri.kobets@gmail.com
639ef3f4b9 Updated the container class for linux (containers/linux). Now with images support.
Updated litebrowser_linux to show websites.
Some changes to make code more compatible with linux.
2014-06-19 23:01:31 +00:00
yuri.kobets@gmail.com
e3485544b9 Some crashes fixed. 2014-02-13 22:59:45 +00:00
yuri.kobets@gmail.com
2af8951d35 More correct floating boxes positions 2014-02-02 23:40:56 +00:00
yuri.kobets@gmail.com
909e17b1d7 * Added support for CSS selectors:
:first-of-type
:last-of-type
:only-of-type
:only-child
:nth-of-type(n)
:nth-last-of-type(n)
:not(selector)
:link
2014-01-21 19:40:39 +00:00
yuri.kobets@gmail.com
ce278122ce Improved tables rendering. Added border-collapse CSS property. 2014-01-06 04:50:25 +00:00
yuri.kobets@gmail.com
832af907d7 Now litebrowser uses WinHTTP to download files asynchronously.
Some fixes in floating elements rendering.
cairo_font is thread safe now
2013-12-16 00:13:45 +00:00
yuri.kobets@gmail.com
a60aba4911 2013-10-16 13:35:34 +00:00
yuri.kobets@gmail.com
827af63f58 Fixed some layout rendering bugs to show web page https://mail.google.com/mail/ correctly.
Half handling of CSS pseudo-elements (started with ::) - currently just removed from processing.
Added document_container::create_element - here you can create own implementation for elements.
2013-09-17 11:28:09 +00:00
yuri.kobets@gmail.com
3f87a2ee01 Added support for @media at-rule in CSS (you have to implement document_container::is_media_valid to process @media correctly).
Added support for sibling selectors (+ and ~)
2013-09-16 00:20:04 +00:00
yuri.kobets@gmail.com
b6e857a211 This revision significantly improve the rendering time especially for pages with many floating elements. 2013-09-05 00:33:50 +00:00
yuri.kobets@gmail.com
0762726555 Added support for list-style-image CSS property.
Some code clean up.
2013-08-15 01:14:37 +00:00
yuri.kobets@gmail.com
18fb5f460f Simplified the document_container::draw_background function. Most code was moved into litehtml core. 2013-08-14 00:35:07 +00:00
yuri.kobets@gmail.com
d9122cc8a2 Added multi byte strings support.
Compiled on linux (not tested yet).
Improved HTML entities support.
2013-07-30 23:20:49 +00:00
yuri.kobets@gmail.com
b86bfed14f Fixed some graphical glitches in cairo_container class 2013-07-13 01:16:36 +00:00
yuri.kobets@gmail.com
cd77c14ea3 Added support for white-space CSS property. 2013-07-10 21:15:50 +00:00
yuri.kobets@gmail.com
e2c19d33dc 2013-06-25 20:21:19 +00:00
yuri.kobets@gmail.com
ae62afb2f0 2013-06-17 23:27:05 +00:00
yuri.kobets@gmail.com
cc4e5b02fa Added external projects for litebrowser. Some changes in the folder structure. 2013-06-11 23:42:02 +00:00
yuri.kobets@gmail.com
667e72859c 2013-06-11 23:05:51 +00:00
yuri.kobets@gmail.com
6a8a4b5e12 2013-02-01 22:18:10 +00:00
yuri.kobets@gmail.com
da6e9a896b added support for overflow:hidden 2012-07-23 21:10:06 +00:00
yuri.kobets@gmail.com
5d213c98b0 1. Removed m_inlines array, now elements are rendered from m_children array.
2. Improved positions of the absolute elements: correct handling auto value for left, top, right, bottom
3. Calculating CSS selectors specificity and sorting selectors with by specificity.
2012-07-21 10:23:31 +00:00
yuri.kobets@gmail.com
652cbba377 2012-07-08 17:58:36 +00:00
yuri.kobets@gmail.com
900ac9dd95 2012-06-24 00:28:03 +00:00
yuri.kobets@gmail.com
f44c6acd80 2012-05-27 21:02:20 +00:00
yuri.kobets@gmail.com
eca5cfca94 2012-05-19 19:34:59 +00:00