summaryrefslogtreecommitdiffstats
path: root/dom/html/ImageDocument.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-08-20 13:11:56 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-08-20 13:31:38 +0200
commitb5ee49d85ae054c0176248c1c4f5b84b57afcb1f (patch)
tree2eb441c87ff39bb79e51219ef3e3adbc3a268de4 /dom/html/ImageDocument.h
parent134fdc7ec46c242baf924db8e3fea9f360d21e73 (diff)
downloadUXP-b5ee49d85ae054c0176248c1c4f5b84b57afcb1f.tar
UXP-b5ee49d85ae054c0176248c1c4f5b84b57afcb1f.tar.gz
UXP-b5ee49d85ae054c0176248c1c4f5b84b57afcb1f.tar.lz
UXP-b5ee49d85ae054c0176248c1c4f5b84b57afcb1f.tar.xz
UXP-b5ee49d85ae054c0176248c1c4f5b84b57afcb1f.zip
Re-implement custom background color of standalone images.
This resolves #717. Note: this does not affect other applications because the platform default is to use the "darknoise" background image for standalone image, which effectively overrides a bg color.
Diffstat (limited to 'dom/html/ImageDocument.h')
-rw-r--r--dom/html/ImageDocument.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/html/ImageDocument.h b/dom/html/ImageDocument.h
index fdf2a00a8..945317314 100644
--- a/dom/html/ImageDocument.h
+++ b/dom/html/ImageDocument.h
@@ -112,6 +112,9 @@ protected:
float mVisibleHeight;
int32_t mImageWidth;
int32_t mImageHeight;
+
+ // Holds the custom background color for stand-alone images
+ nsAutoString mBackgroundColor;
bool mResizeImageByDefault;
bool mClickResizingEnabled;