mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
This commit is contained in:
parent
73cdb3106e
commit
e6f376f5ef
12 changed files with 130 additions and 79 deletions
|
|
@ -2260,21 +2260,27 @@ public:
|
|||
* nesting and possible sources, which are used to inform URL selection
|
||||
* responsive <picture> or <img srcset> images. Unset attributes are expected
|
||||
* to be marked void.
|
||||
* If this image is for <picture> or <img srcset>, aIsImgSet will be set to
|
||||
* true, false otherwise.
|
||||
*/
|
||||
virtual already_AddRefed<nsIURI>
|
||||
ResolvePreloadImage(nsIURI *aBaseURI,
|
||||
const nsAString& aSrcAttr,
|
||||
const nsAString& aSrcsetAttr,
|
||||
const nsAString& aSizesAttr) = 0;
|
||||
const nsAString& aSizesAttr,
|
||||
bool *aIsImgSet) = 0;
|
||||
/**
|
||||
* Called by nsParser to preload images. Can be removed and code moved
|
||||
* to nsPreloadURIs::PreloadURIs() in file nsParser.cpp whenever the
|
||||
* parser-module is linked with gklayout-module. aCrossOriginAttr should
|
||||
* be a void string if the attr is not present.
|
||||
* aIsImgSet is the value got from calling ResolvePreloadImage, it is true
|
||||
* when this image is for loading <picture> or <img srcset> images.
|
||||
*/
|
||||
virtual void MaybePreLoadImage(nsIURI* uri,
|
||||
const nsAString& aCrossOriginAttr,
|
||||
ReferrerPolicyEnum aReferrerPolicy) = 0;
|
||||
ReferrerPolicyEnum aReferrerPolicy,
|
||||
bool aIsImgSet) = 0;
|
||||
|
||||
/**
|
||||
* Called by images to forget an image preload when they start doing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue