From eb76e93af3b7c53f70f6fd840a6923541250b1ba Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 6 Sep 2019 21:14:35 +0000
Subject: l3 (6sep19)

git-svn-id: svn://tug.org/texlive/trunk@52041 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/l3backend/l3backend-dvisvgm.def      | 31 +++++++++++++++++++---
 1 file changed, 28 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def')

diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
index 254169a1c6d..62dbf732d82 100644
--- a/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
+++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
@@ -26,7 +26,7 @@
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
   {l3backend-dvisvgm.def}{2019-04-06}{}
-  {L3 Experimental backend support: dvisvgm}
+  {L3 backend support: dvisvgm}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1
   { \__kernel_backend_literal:e { \exp_not:n {#1} } }
@@ -463,9 +463,34 @@
   }
 %% File: l3backend-graphics.dtx
 \AtBeginDocument
+  { \cs_new_eq:NN \__graphics_backend_getbb_eps:n \graphics_read_bb:n }
+\cs_new_protected:Npn \__graphics_backend_getbb_jpg:n #1
   {
-    \cs_new_eq:NN \__graphics_backend_getbb_png:n \graphics_extract_bb:n
-    \cs_new_eq:NN \__graphics_backend_getbb_jpg:n \graphics_extract_bb:n
+    \int_zero:N \l_graphics_page_int
+    \tl_clear:N \l_graphics_pagebox_tl
+    \graphics_extract_bb:n {#1}
+  }
+\cs_new_eq:NN \__graphics_backend_getbb_png:n \__graphics_backend_getbb_jpg:n
+\cs_new_protected:Npn \__graphics_backend_getbb_pdf:n #1
+  {
+    \tl_clear:N \l_graphics_decodearray_tl
+    \bool_set_false:N \l_graphics_interpolate_bool
+    \graphics_extract_bb:n {#1}
+  }
+\cs_new_protected:Npn \__graphics_backend_include_eps:n #1
+  { __graphics_backend_include:nn { PSfile } {#1} }
+\cs_new_protected:Npn \__graphics_backend_include_pdf:n #1
+  { __graphics_backend_include:nn { pdffile } {#1} }
+\cs_new_protected:Npn \__graphics_backend_include:nn #1#2
+  {
+    \__kernel_backend_literal:x
+      {
+        #1 = #2 \c_space_tl
+        llx = \dim_to_decimal_in_bp:n \l_graphics_llx_dim \c_space_tl
+        lly = \dim_to_decimal_in_bp:n \l_graphics_lly_dim \c_space_tl
+        urx = \dim_to_decimal_in_bp:n \l_graphics_urx_dim \c_space_tl
+        ury = \dim_to_decimal_in_bp:n \l_graphics_ury_dim
+      }
   }
 \cs_new_protected:Npn \__graphics_backend_include_png:n #1
   {
-- 
cgit v1.2.3

