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

1313 Commits

Author SHA1 Message Date
Guillaume Ayoub
1d1654c16c Fix corner cases about named pages 2017-09-11 13:08:40 +02:00
Guillaume Ayoub
4990ad9465 Fix _select_sources again 2017-09-06 18:24:56 +02:00
Guillaume Ayoub
ae0a1987d7 Fix _select_source cleanup 2017-09-06 16:55:21 +02:00
Guillaume Ayoub
3920d12009 Merge branch 'improve-readibility-of-_select_source' of https://github.com/Pacu2/WeasyPrint into Pacu2-improve-readibility-of-_select_source 2017-09-06 16:43:02 +02:00
Guillaume Ayoub
1675b95e9c Fix test failing with old versions of cairo 2017-09-06 11:01:17 +02:00
Guillaume Ayoub
5f25373a6e Use "proprietary" and "unstable" to define the use of prefixes
This is the terminology used by the CSSWG. Fix #498.
2017-09-05 22:58:35 +02:00
Guillaume Ayoub
c056039f58 Update specification statuses
Related to #498.
2017-09-05 22:58:11 +02:00
Pacu2
6440e2572d Improve readibility 2017-08-25 11:01:37 +02:00
Guillaume Ayoub
bb3a4dbcec Try to break pages after a block before trying to break inside it 2017-08-18 08:28:08 +02:00
Guillaume Ayoub
9556781314 Fix misleading warnings about unprefixed properties 2017-08-17 16:01:25 +02:00
Guillaume Ayoub
fbcd088c51 Version 0.40. 2017-08-17 11:20:36 +02:00
Guillaume Ayoub
d4357e5a4a Copy styles for split boxes
This fixes blocks split between pages and inlines boxes split by block boxes.

Increases memory usage, related to #70.
2017-08-17 07:54:14 +02:00
Guillaume Ayoub
a475489b68 Fix inheritance of letter boxes 2017-08-17 07:53:54 +02:00
Guillaume Ayoub
9f9716df33 Remove case-sensivity for at-rules and properties 2017-08-17 07:52:18 +02:00
Guillaume Ayoub
fb649f22b3 Ignore CSS imports after other types of declarations 2017-08-17 07:47:20 +02:00
Guillaume Ayoub
dd7bf0b8a1 Put StyleDict.copy at its original place 2017-08-17 07:44:19 +02:00
Guillaume Ayoub
363e9f6bd2 Unprefix properties defined in specifications 2017-08-17 07:42:42 +02:00
Guillaume Ayoub
2ac0481cb0 Don't crash when an at-rule is empty 2017-08-14 14:11:57 +02:00
Guillaume Ayoub
c41b55eb93 Don't crash when there's no displayed root element 2017-08-14 14:11:20 +02:00
Guillaume Ayoub
9a44e2f469 Copy the style of the wrapper as it will be modified
Sould be needed where the style is inherited and modified
2017-08-14 14:10:24 +02:00
Guillaume Ayoub
c14266b3d0 Fix some first-letter box creations 2017-08-14 11:37:28 +02:00
Guillaume Ayoub
b6fc234db3 Don't crash when setting compuetd style on root pseudo elements 2017-08-14 11:37:05 +02:00
Guillaume Ayoub
c0b5ba4c53 Ignore CSS rules with empty media queries 2017-08-14 11:36:35 +02:00
Guillaume Ayoub
0ac600234c Make named pages inherit from anonymous page style 2017-08-07 12:21:17 +02:00
Guillaume Ayoub
5085a704b7 Fix mixed break and page properties 2017-08-05 15:27:03 +02:00
Guillaume Ayoub
c642442237 Merge branch 'master' into namedpages 2017-08-05 13:46:29 +02:00
Guillaume Ayoub
833b757160 Add style for main tag 2017-08-05 13:45:38 +02:00
Guillaume Ayoub
865a919ad5 Add avoid-page value where avoid is tested for break 2017-08-05 13:35:18 +02:00
Guillaume Ayoub
515d85f1d7 Basic support of named pages
Fix #57.
2017-08-04 23:04:30 +02:00
Guillaume Ayoub
508b365a05 Give the page name when creating PageTypes 2017-08-04 14:14:25 +02:00
Guillaume Ayoub
63f687f70b Include the page name in the next_page variable 2017-08-04 13:49:40 +02:00
Guillaume Ayoub
5cc1ffe2b1 Always return the next page name in block_level_page_break
Use the 'break' returned value to force the page break
2017-08-04 11:56:08 +02:00
Guillaume Ayoub
86be0e9287 Return the next page value in block_level_page_break 2017-08-04 11:51:35 +02:00
Guillaume Ayoub
84dd9b8002 Merge branch 'master' into namedpages 2017-08-02 23:52:17 +02:00
Guillaume Ayoub
84bdee14c3 Revert "Change table and table-* elements' style before creating StyleDicts"
This reverts commit ca8bc3e578.

The main change is the creation of StyleDicts removed from style_for, for
memory consumption problems.
2017-08-02 20:21:34 +02:00
Guillaume Ayoub
c779977271 Unfreeze StyleDict 2017-08-02 16:32:37 +02:00
Guillaume Ayoub
033f4738ab Remove first-letter style being calculated twice 2017-08-02 13:21:15 +02:00
Guillaume Ayoub
4aa7bb49f7 Change the signature of root_style_for 2017-08-02 13:18:58 +02:00
Guillaume Ayoub
f7903925fd Use a separate variable for justification spacing 2017-08-01 10:07:36 +02:00
Guillaume Ayoub
7d0add7b91 Allow updated values in style_for 2017-08-01 09:53:30 +02:00
Guillaume Ayoub
6ed7e59aa9 Hide StyleDict.update 2017-08-01 09:53:10 +02:00
Guillaume Ayoub
ca8bc3e578 Change table and table-* elements' style before creating StyleDicts 2017-07-31 13:48:58 +02:00
Guillaume Ayoub
39fe17dc95 Don't copy StyleDicts when there's no need to 2017-07-31 11:28:23 +02:00
Guillaume Ayoub
0dc1bf6f8c Remove useless margin for inline markers 2017-07-31 11:28:23 +02:00
Guillaume Ayoub
7abfcb9e75 Update StyleDict.copy's description 2017-07-30 14:00:33 +02:00
Guillaume Ayoub
b3865c811c Re-add a copy method for StyleDict 2017-07-28 22:28:29 +02:00
Guillaume Ayoub
56f27885f4 Remove StyleDict mutations and copies 2017-07-28 19:56:14 +02:00
Guillaume Ayoub
a2a29d7b6f Clean the way the anonymous attribute is set to tables and wrappers 2017-07-28 18:59:43 +02:00
Guillaume Ayoub
a3e2c474f0 Transform StyleDict into a kind of frozen dict
This forces to use a copy when changes are needed. Internal mutable structures
have also been changed into immutable ones (i.e. lists have been turned into
tuples).

This change is a really useful first step to greatly optimize memory and time
needed to render large documents, as allows us to cache style dicts more
safely. It's been already done in StyleDict.inherit_from, with a ~5-10% memory
benefice.
2017-07-28 13:35:06 +02:00
Guillaume Ayoub
437a079542 Add a verbose option
Related to #488.
2017-07-25 14:00:35 +02:00