diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-03-21 03:14:39 +0000 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-03-21 03:14:39 +0000 |
commit | b95cea01b9a61c2f4e176b2e12acc4abef5d3d9d (patch) | |
tree | 69c346477f003ecac6648c2e4e69a3309520d7bd /dw/image.hh | |
parent | b49f9aff0d3a8d64768c265b877824124b5be4d3 (diff) |
make drawing image map shapes work when <img> precedes <map>
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007406.html
Johannes wrote the code, and I (corvid) added some big comments of the sort
alluded to in that thread.
Diffstat (limited to 'dw/image.hh')
-rw-r--r-- | dw/image.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/image.hh b/dw/image.hh index 8e133b28..a8314d4f 100644 --- a/dw/image.hh +++ b/dw/image.hh @@ -159,6 +159,13 @@ public: void setIsMap (); void setUseMap (ImageMapsList *list, Object *key); + + /* This is a hack for the perhaps frivolous feature of drawing image map + * shapes when there is no image to display. If the map is defined after + * an image using an image map, and the actual image data has not been + * loaded, tell the image to redraw. + */ + void forceMapRedraw () { if (mapKey && ! buffer) queueDraw (); }; }; } // namespace dw |