diff options
author | Andy <webmaster@RealityRipple.com> | 2020-08-04 13:54:01 -0700 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:23:18 +0000 |
commit | 0bbe6ec10589b8540aa86200bf2b209ad4e563ba (patch) | |
tree | 2144747a67a4be26df207060bd9e32e8e2f7f39a /dom/html/HTMLImageElement.h | |
parent | 48d31ea5ebe2a4901fcb542e1e48b6fd6b67d64c (diff) | |
download | UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.gz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.lz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.xz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.zip |
Issue #1620 - Use Intrinsic Aspect Ratio for Images (uplift)
Diffstat (limited to 'dom/html/HTMLImageElement.h')
-rw-r--r-- | dom/html/HTMLImageElement.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/html/HTMLImageElement.h b/dom/html/HTMLImageElement.h index 62323e801..1e63cd79c 100644 --- a/dom/html/HTMLImageElement.h +++ b/dom/html/HTMLImageElement.h @@ -206,6 +206,11 @@ public: return GetReferrerPolicyAsEnum(); } + bool IsAwaitingLoad() const + { + return !!mPendingImageLoadTask; + } + int32_t X(); int32_t Y(); // Uses XPCOM GetLowsrc. |