Bug 1711064 - Cherry-pick fix from upstream cairo to resolve missing objects in generated PDF's xref table. r=jrmuizel

See https://gitlab.freedesktop.org/cairo/cairo/-/issues/487 for details. This was merged upstream in
2edcb1ac23;

Differential Revision: https://phabricator.services.mozilla.com/D116694
This commit is contained in:
Jonathan Kew 2021-06-03 13:23:43 +00:00
Родитель d0aae5dbdc
Коммит 0e98585b83
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1380,7 +1380,8 @@ _cairo_pdf_interchange_write_document_objects (cairo_pdf_surface_t *surface)
cairo_tag_stack_structure_type_t tag_type;
tag_type = _cairo_tag_stack_get_structure_type (&ic->analysis_tag_stack);
if (tag_type == TAG_TREE_TYPE_TAGGED || tag_type == TAG_TREE_TYPE_STRUCTURE) {
if (tag_type == TAG_TREE_TYPE_TAGGED || tag_type == TAG_TREE_TYPE_STRUCTURE ||
tag_type == TAG_TREE_TYPE_LINK_ONLY) {
status = cairo_pdf_interchange_write_parent_tree (surface);
if (unlikely (status))