summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLImageElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/HTMLImageElement.h')
-rw-r--r--dom/html/HTMLImageElement.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/html/HTMLImageElement.h b/dom/html/HTMLImageElement.h
index bb4a09882..23cac4afb 100644
--- a/dom/html/HTMLImageElement.h
+++ b/dom/html/HTMLImageElement.h
@@ -196,6 +196,11 @@ public:
return GetReferrerPolicyAsEnum();
}
+ bool IsAwaitingLoad() const
+ {
+ return !!mPendingImageLoadTask;
+ }
+
int32_t X();
int32_t Y();
// Uses XPCOM GetLowsrc.