1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
Commit Graph

51 Commits

Author SHA1 Message Date
Simon Sapin
0ff73c49bc Cache intermediate results for intrinsic widths on tables.
This fixes huges performance problems when a large table is split
across many pages.
2012-09-13 11:46:13 +02:00
Simon Sapin
d1971b6e63 Remove unused imports. 2012-08-03 13:32:42 +02:00
Simon Sapin
d401e7241b Kill Document in layout/*.py 2012-07-12 17:13:21 +02:00
Simon Sapin
cca18bdfe9 Kill Document in pdf.py and text.py 2012-07-12 16:14:35 +02:00
Simon Sapin
002ed3a99e Ignore border-spacing when border-collapse is 'collapse'
Also remove TODOs in preferred.py:
'when border-collapse: collapse; set outer=False'

build.py sets transparent borders half as wide as the
collapsed border on each cell, so the layout should
just work unchanged.
2012-07-11 15:43:18 +02:00
Simon Sapin
6d5e473993 Fix inline floated images. 2012-06-28 19:07:26 +02:00
Simon Sapin
c36d6b6b29 Intrinsic widths: account for floats in inline contexts 2012-06-28 18:46:54 +02:00
Guillaume Ayoub
cd1e5b3e05 Merge branch 'master' into float
Conflicts:
	weasyprint/layout/preferred.py
	weasyprint/text.py
2012-06-22 01:29:26 +02:00
Simon Sapin
97f3eee889 Refactor text handling
* Kill the TextFragment class. Use a set of functions instead.
* Pass around an `enable_hinting` boolean rather than a dummy surface
2012-06-21 17:22:01 +02:00
Guillaume Ayoub
e12880b113 Handle float in inline as almost normal boxes 2012-06-21 16:03:29 +02:00
Guillaume Ayoub
8a94ff2f9b Strip spaces at the beginning of text fragments to get real line widths 2012-06-18 10:44:54 +02:00
Simon Sapin
81a63a8ca7 Merge branch 'master' into float
Conflicts:
	weasyprint/layout/pages.py
	weasyprint/layout/preferred.py
2012-06-02 08:35:17 +02:00
Simon Sapin
3cd540eaa9 Fix shrink-to-fit in PNG: have the same hinting as in layout. 2012-06-02 08:28:41 +02:00
Simon Sapin
6b3837f2f9 Fix corner cases in table auto layout. 2012-06-01 09:29:28 +02:00
Guillaume Ayoub
2f697b47fd Merge branch 'master' into float 2012-05-31 21:11:08 +02:00
Guillaume Ayoub
d3ea76ffbf Keep float elements to get preferred widths 2012-05-31 21:05:10 +02:00
Simon Sapin
71f94416da Handle preferred widths for inline tables. 2012-05-31 18:34:36 +02:00
Simon Sapin
2c3e0e825d Fix Py3k compat: next(iterator) instead of iterator.next() 2012-05-31 14:59:34 +02:00
Guillaume Ayoub
d747fafe7f Use named parameters when needed in inline_preferred_minimun_width 2012-05-31 02:08:33 +02:00
Guillaume Ayoub
69c43e6d6c Allow the preferred minimum width of inline elements to get only the first line 2012-05-31 02:05:35 +02:00
Guillaume Ayoub
ea7993e4eb Fix a lot of things for float boxes 2012-05-30 23:40:54 +02:00
Simon Sapin
c8d6066ace Fix the available width for shrink-to-fit on absolutes. 2012-05-30 19:06:09 +02:00
Simon Sapin
9a3ec6fc81 Many fixes for the W3C test suite. 2012-05-25 15:57:13 +02:00
Simon Sapin
60f8285ee2 Handle absolute replaced boxes. 2012-05-25 14:08:35 +02:00
Simon Sapin
26937a315b Fix all the bugs for absolute positioning (maybe)
When an absolutly-positioned box is taken out of the flow,
leave a "placeholder" instead.

This should fix the bugs related to .translate() with absolutes.
2012-05-25 12:04:08 +02:00
Guillaume Ayoub
f1ebf59486 Add some tests and fixes about auto layout tables 2012-05-07 18:16:32 +02:00
Simon Sapin
8bb2d566c2 Oooops 2012-04-12 17:20:58 +02:00
Guillaume Ayoub
9af417088f Small fix for preferred width of tables 2012-04-12 13:20:41 +02:00
Guillaume Ayoub
ccb73421f8 Fix the `adjust` function for tables 2012-04-10 19:00:56 +02:00
Guillaume Ayoub
c2a6a70736 Fix the preferred width resolution of the tables 2012-04-10 18:29:00 +02:00
Guillaume Ayoub
643eb9a957 Handle the captions 2012-04-10 17:56:23 +02:00
Guillaume Ayoub
3a86c1e679 Add the functions for preferred sizes of tables 2012-04-10 14:38:18 +02:00
Simon Sapin
3ead78fe7d Account for {min,max}-width for preferred widths. 2012-04-10 12:00:31 +02:00
Guillaume Ayoub
0d59b2600f Clean and fix a lot of things in tables auto layout 2012-04-07 14:25:30 +02:00
Simon Sapin
b113b29fd7 Update shrink-to-fit for tinycss. 2012-04-05 13:16:17 +02:00
Guillaume Ayoub
21277c18cc Add some tests, split inner/outer preferred widths 2012-04-04 14:25:13 +02:00
Guillaume Ayoub
42e25e1e3c Add a basic shrink to fit for tables 2012-03-23 19:31:54 +01:00
Guillaume Ayoub
82db8a421c Fix the shirk to fit agorithm 2012-03-23 17:33:59 +01:00
Guillaume Ayoub
e8920cea3f Don't shrink inline-blocks with multiple lines 2012-03-23 13:32:44 +01:00
Guillaume Ayoub
0c891965d2 Resolve margin_width when possible for preferred values
This fix sets the margin/border/padding values for inline-block children
2012-03-23 01:04:38 +01:00
Guillaume Ayoub
48c7005019 Fix the x and y position of the children of the inline-block boxes 2012-03-23 00:45:38 +01:00
Guillaume Ayoub
b5d1c3f7de Handle fixed sizes in inline-block children 2012-03-22 23:52:32 +01:00
Guillaume Ayoub
65a8d64490 Fix the maximum preferred width when a maximum width is set 2012-03-22 23:41:24 +01:00
Guillaume Ayoub
abd386796f Naive implementation of inline-block evelements 2012-03-22 23:26:09 +01:00
Guillaume Ayoub
2c0c83693f Add the function definitions for shrink to fit 2012-03-22 19:32:59 +01:00
Simon Sapin
ccdfbe1d97 Boilerplate for inline-block support 2012-03-22 18:36:56 +01:00
Simon Sapin
dcacf9eed0 Switch the licence to BSD and rewrite module docstrings/headers 2012-03-21 23:26:58 +01:00
Simon Sapin
26de362b99 Add proper attribution in AUTHORS 2012-03-21 18:40:38 +01:00
Simon Sapin
9875f76995 Hello 2012 2012-03-21 18:40:38 +01:00
Simon Sapin
ff135aa285 Python 3 compat. All tests pass with the same code base! 2012-02-17 22:48:20 +01:00