Skip to content

Upgrading weasyprint 48 to 49

Review needed48 → 49New3Changed1Fixed19Other7

Review neededUpgrade verdict

1 behavior change.

  • Speed and memory use have been largely improved.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: function add_declaration(cascaded_styles, prop_name, prop_values, weight, element, pseudo_type=…)
  • removed: field Box.outside_list_marker
  • removed: method BlockBox.all_children()
  • removed: method ParentBox.enumerate_skip(skip_num=…)
  • removed: function add_box_marker(box, counter_values, get_image_from_uri)
  • changed: function make_box(element_tag, style, content, get_image_from_uri) → function make_box(element_tag, style, content)
  • added: function marker_to_box(element, state, parent_style, style_for, get_image_from_uri, target_collector)
  • changed: function layout_document(enable_hinting, style_for, get_image_from_uri, root_box, font_config, html, target_collector, max_loops=…) → function layout_document(html, root_box, context, max_loops=…)
  • changed: function block_box_layout(context, box, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins) → function block_box_layout(context, box, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins)
  • changed: function block_container_layout(context, box, max_position_y, skip_stack, device_size, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins=…) → function block_container_layout(context, box, max_position_y, skip_stack, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins=…)
  • changed: function block_level_layout(context, box, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins) → function block_level_layout(context, box, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins)
  • changed: function block_level_layout_switch(context, box, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins) → function block_level_layout_switch(context, box, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins)
  • changed: function block_replaced_box_layout(box, containing_block, device_size) → function block_replaced_box_layout(box, containing_block)
  • changed: function block_replaced_width(box, containing_block, device_size) → function block_replaced_width(box, containing_block)
  • changed: function columns_layout(context, box, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins) → function columns_layout(context, box, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins)
  • changed: function flex_layout(context, box, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes) → function flex_layout(context, box, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes)
  • changed: function float_layout(context, box, containing_block, device_size, absolute_boxes, fixed_boxes) → function float_layout(context, box, containing_block, absolute_boxes, fixed_boxes)
  • changed: function atomic_box(context, box, position_x, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes) → function atomic_box(context, box, position_x, skip_stack, containing_block, absolute_boxes, fixed_boxes)
  • changed: function get_next_linebox(context, linebox, position_y, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes, first_letter_style) → function get_next_linebox(context, linebox, position_y, skip_stack, containing_block, absolute_boxes, fixed_boxes, first_letter_style)
  • changed: function inline_block_box_layout(context, box, position_x, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes) → function inline_block_box_layout(context, box, position_x, skip_stack, containing_block, absolute_boxes, fixed_boxes)
  • changed: function inline_replaced_box_layout(box, device_size) → function inline_replaced_box_layout(box, containing_block)
  • changed: function inline_replaced_box_width_height(box, device_size) → function inline_replaced_box_width_height(box, containing_block)
  • changed: function iter_line_boxes(context, box, position_y, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes, first_letter_style) → function iter_line_boxes(context, box, position_y, skip_stack, containing_block, absolute_boxes, fixed_boxes, first_letter_style)
  • changed: function replaced_box_height(box, device_size) → function replaced_box_height(box)
  • changed: function replaced_box_width(box, device_size) → function replaced_box_width(box, containing_block)
  • changed: function split_inline_box(context, box, position_x, max_x, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes, line_placeholders, waiting_floats, line_children) → function split_inline_box(context, box, position_x, max_x, skip_stack, containing_block, absolute_boxes, fixed_boxes, line_placeholders, waiting_floats, line_children)
  • changed: function split_inline_level(context, box, position_x, max_x, skip_stack, containing_block, device_size, absolute_boxes, fixed_boxes, line_placeholders, waiting_floats, line_children) → function split_inline_level(context, box, position_x, max_x, skip_stack, containing_block, absolute_boxes, fixed_boxes, line_placeholders, waiting_floats, line_children)
  • changed: function make_all_pages(context, root_box, html, pages, style_for) → function make_all_pages(context, root_box, html, pages)
  • changed: function remake_page(index, context, root_box, html, style_for) → function remake_page(index, context, root_box, html)
  • added: function table_cell_max_content_width(context, box, outer)
  • added: function table_cell_min_content_width(context, box, outer)
  • removed: function image_marker_layout(box)
  • changed: function table_layout(context, table, max_position_y, skip_stack, containing_block, device_size, page_is_empty, absolute_boxes, fixed_boxes) → function table_layout(context, table, max_position_y, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes)