1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Change the signature of root_style_for

This commit is contained in:
Guillaume Ayoub 2017-08-02 13:18:58 +02:00
parent f7903925fd
commit 4aa7bb49f7

View File

@ -53,8 +53,8 @@ def build_formatting_structure(element_tree, style_for, get_image_from_uri,
box, = box_list
else:
# No root element
def root_style_for(element, pseudo_type=None):
style = style_for(element, pseudo_type)
def root_style_for(element, pseudo_type=None, update=None):
style = style_for(element, pseudo_type, update)
if style:
if element.parent is None:
style.display = 'block'