]> git.eshelyaron.com Git - emacs.git/commit
In SHR, keep track of image sizes as specified by the HTML
authorJim Porter <jporterbugs@gmail.com>
Sun, 23 Jun 2024 19:25:25 +0000 (12:25 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:16:52 +0000 (15:16 +0200)
commitd81d96592a624206bd830d26ccc099192de0cb4c
treedf4b12a8f20028f5a60fc60d6d3d5095bbb450ea
parent9741cc2454e1d943dd137c8af053662ef2b42c37
In SHR, keep track of image sizes as specified by the HTML

Previously, these values got lost when zooming the image.

* lisp/net/shr.el (shr-tag-img): Set 'image-dom-size'...
(shr-zoom-image): ... use it.  Rename 'size' to 'zoom'.
(shr-image-fetched): Rename 'image-size' to 'image-zoom'.
(shr-put-image): Accept the zoom level as ':zoom' and document it.
Previously, FLAGS was a mix of alist and plist(!).

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Rename "size" to
"zoom".

(cherry picked from commit 6d082f3c79269f00308d6e8b7d31d6a119376fe2)
lisp/net/shr.el
test/lisp/net/shr-tests.el