зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1635082 - Remove nsImageLoadingContent::GetImageReferrerPolicy. r=edgar
It's useless now, the relevant check lives in ReferrerInfo::InitFromNode. Differential Revision: https://phabricator.services.mozilla.com/D73620
This commit is contained in:
Родитель
0c24037d04
Коммит
c9dbf72d3b
|
@ -1797,12 +1797,6 @@ bool nsImageLoadingContent::ScriptedImageObserver::CancelRequests() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only HTMLInputElement.h overrides this for <img> tags
|
|
||||||
// all other subclasses use this one, i.e. ignore referrer attributes
|
|
||||||
mozilla::dom::ReferrerPolicy nsImageLoadingContent::GetImageReferrerPolicy() {
|
|
||||||
return mozilla::dom::ReferrerPolicy::_empty;
|
|
||||||
}
|
|
||||||
|
|
||||||
Element* nsImageLoadingContent::FindImageMap() {
|
Element* nsImageLoadingContent::FindImageMap() {
|
||||||
nsIContent* thisContent = AsContent();
|
nsIContent* thisContent = AsContent();
|
||||||
Element* thisElement = thisContent->AsElement();
|
Element* thisElement = thisContent->AsElement();
|
||||||
|
|
|
@ -213,8 +213,6 @@ class nsImageLoadingContent : public nsIImageLoadingContent {
|
||||||
*/
|
*/
|
||||||
virtual mozilla::CORSMode GetCORSMode();
|
virtual mozilla::CORSMode GetCORSMode();
|
||||||
|
|
||||||
virtual mozilla::dom::ReferrerPolicy GetImageReferrerPolicy();
|
|
||||||
|
|
||||||
// Subclasses are *required* to call BindToTree/UnbindFromTree.
|
// Subclasses are *required* to call BindToTree/UnbindFromTree.
|
||||||
void BindToTree(mozilla::dom::BindContext&, nsINode& aParent);
|
void BindToTree(mozilla::dom::BindContext&, nsINode& aParent);
|
||||||
void UnbindFromTree(bool aNullParent);
|
void UnbindFromTree(bool aNullParent);
|
||||||
|
|
|
@ -393,7 +393,7 @@ nsresult HTMLImageElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
||||||
aValue && static_cast<ImageDecodingType>(aValue->GetEnumValue()) ==
|
aValue && static_cast<ImageDecodingType>(aValue->GetEnumValue()) ==
|
||||||
ImageDecodingType::Sync);
|
ImageDecodingType::Sync);
|
||||||
} else if (aName == nsGkAtoms::referrerpolicy) {
|
} else if (aName == nsGkAtoms::referrerpolicy) {
|
||||||
ReferrerPolicy referrerPolicy = GetImageReferrerPolicy();
|
ReferrerPolicy referrerPolicy = GetReferrerPolicyAsEnum();
|
||||||
// FIXME(emilio): Why only when not in responsive mode? Also see below for
|
// FIXME(emilio): Why only when not in responsive mode? Also see below for
|
||||||
// aNotify.
|
// aNotify.
|
||||||
forceReload = aNotify && !InResponsiveMode() &&
|
forceReload = aNotify && !InResponsiveMode() &&
|
||||||
|
|
|
@ -203,10 +203,6 @@ class HTMLImageElement final : public nsGenericHTMLElement,
|
||||||
|
|
||||||
already_AddRefed<Promise> Decode(ErrorResult& aRv);
|
already_AddRefed<Promise> Decode(ErrorResult& aRv);
|
||||||
|
|
||||||
ReferrerPolicy GetImageReferrerPolicy() override {
|
|
||||||
return GetReferrerPolicyAsEnum();
|
|
||||||
}
|
|
||||||
|
|
||||||
MOZ_CAN_RUN_SCRIPT int32_t X();
|
MOZ_CAN_RUN_SCRIPT int32_t X();
|
||||||
MOZ_CAN_RUN_SCRIPT int32_t Y();
|
MOZ_CAN_RUN_SCRIPT int32_t Y();
|
||||||
void GetLowsrc(nsAString& aLowsrc) {
|
void GetLowsrc(nsAString& aLowsrc) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче