Commit Graph

951 Commits

Author SHA1 Message Date
Yuri Kobets
98166ee74a fixed: incorrect parsing CSS selectors like img[align="left"] 2015-01-09 17:00:17 +03:00
Yuri Kobets
74cf21da35 Break gumbo reported white spaces into objects.
Added validation for CSS properties values.
2015-01-08 15:50:46 +03:00
Yuri Kobets
91862bc8fa Added support for CSS tables with display property:
table, table-footer-group, table-row-group, table-header-group, table-row, table-cell
2015-01-08 01:48:03 +03:00
Yuri Kobets
32f4153afb readme file update 2015-01-02 20:03:18 +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
fe3daf19ba added compatibility with linux 2014-12-31 13:54:22 +03:00
Yuri Kobets
e395dc3670 Updated README 2014-12-30 23:48:42 +03:00
Yuri Kobets
00cf496acb Added word break on characters in CJK range 2014-12-30 12:29:12 +03:00
Yuri Kobets
3573241f41 Use gumbo-parser as HTML parser engine. 2014-12-29 15:41:17 +03:00
Yuri Kobets
21c91a4b23 Added project for Visual Studio 2013 2014-12-04 23:48:02 +03:00
Yuri Kobets
81af2a8162 fixed linux container 2014-10-23 02:41:48 +04:00
Yuri Kobets
5bf5f1e81a some code improvements 2014-10-23 02:06:07 +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
3d4cd350e4 document::get_fixed_boxes returns boxes with overflows
add support for CDATA
2014-10-18 08:13:02 +04:00
Yuri Kobets
064a6a66f0 Fix: problems with :after :before elements in refresh_styles
children must be processed after removing and before adding :after :before elements
2014-10-17 18:25:30 +04:00
Yuri Kobets
b4b28194d0 Added support for box-sizing CSS property. 2014-10-17 13:44:03 +04:00
Yuri Kobets
4df6fe9cfb Fix: css selector can have more then one condition for attribute.
css_attribute_selector::map is replaced to css_attribute_selector::vector
example: .input-group[class*="col-"]
2014-10-17 13:13:05 +04:00
Yuri Kobets
f1f752af15 fixed incorrect table width and width of the inline blocks. 2014-10-14 04:00:25 +04:00
Yuri Kobets
cef648d83f Fixed length rounding with css_units_percentage to return the smallest value. 2014-10-13 05:43:28 +04:00
Yuri Kobets
ad859f01f6 Fix: elements can ignore mouse with some conditions 2014-10-10 07:15:53 +04:00
Yuri Kobets
f51196c89c Fixed incorrect rendering of elements with margins and percent value of CSS width property 2014-10-09 02:32:58 +04:00
Yuri Kobets
d6f5885ba8 Added default predefined value parameter into css_length::fromString
This fixes the bug in CSS text when length is not a number or valid keyword
2014-10-09 02:31:37 +04:00
Yuri Kobets
51a0d0c05e <!DOCTYPE can be in lowercase, ignore all tags that begins with '!' char 2014-10-07 05:04:28 +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
bce4c656c0 improved support for ommited start/end tags 2014-09-30 03:25:19 +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
090a2e48e9 fix: incorrect position of the fixed elements
when client rectangle is not in (0,0)
2014-09-11 05:27:21 +04:00
Yuri Kobets
ebbee5d0f4 fixed: incorrect base line for inline boxes 2014-09-10 00:52:46 +04:00
Yuri Kobets
121a33006d fix: run render with second_pass parameter from render_positioned
This fix the problem with text-align in fixed and absolute elements
2014-09-09 08:45:08 +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
0afcf0c06a Separate fixed elements rendering, mark root element background.
document::render accept render_type parameter:
render_all - render all elements
render_no_fixed - don't render fixed elements
render_fixed_only - render the fixed elements only
background_paint now have is_root member. You can check is_root to draw background in entire window (not in paint rectangle only).
2014-09-04 04:48:47 +04:00
Yuri Kobets
29fd19c003 Improved background processing for <body> and <html> tags.
litehtml expands <html> element to entire client/document area.
Also fixed bug with margin collapse for body element.
2014-09-01 06:22:20 +04:00
Yuri Kobets
4071aa824e Removed check for <ul> -> <li>
Looks like it is possible to use other tags then <li> in <ul>/<ol>.
2014-09-01 01:44:18 +04:00
Yuri Kobets
db92356780 HTML entities are case-sensitive. 2014-08-31 21:02:26 +04:00
Yuri Kobets
4c6aa944a2 html_tag::render returns incorrect width for elements with floats. 2014-08-30 22:48:14 +04:00
tordex
5838e3db77 Update README.md 2014-08-28 15:37:38 +04:00
Yuri Kobets
bf218c40be Merge branch 'master' of github.com:tordex/litehtml
Conflicts:
	README.md
2014-08-28 15:35:23 +04:00
Yuri Kobets
11faabd73a Updated README.md
Added links to litebrowser (windows and linux) repository.
2014-08-28 15:32:00 +04:00
Yuri Kobets
9e0ebad0b7 Added link to litebrowser repository into README.md 2014-08-28 05:19:32 +04:00
Yuri Kobets
1ca8f9a3f9 examples folder is removed and will be moved into separate repository 2014-08-28 04:18:33 +04:00
Yuri Kobets
6707c416f2 Modules added for litebrowser 2014-08-27 03:25:47 +04:00
Yuri Kobets
d04487582b Old libs are deleted 2014-08-27 02:49:18 +04:00
tordex
9e13822f2f Create LICENSE 2014-08-25 18:43:03 +04:00
tordex
61549c9083 Update README.md 2014-08-25 18:41:44 +04:00
tordex
2fea3e67f5 Create README.md 2014-08-25 18:39:25 +04:00
yuri.kobets@gmail.com
8920236e2c Added makefile for litebrowser_linux 2014-08-24 21:59:56 +00:00
yuri.kobets@gmail.com
e2f6dbeee6 2014-08-24 19:21:37 +00:00