mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-29 02:27:30 +09:00
Issue #1620 - Remove Development Comments
This commit is contained in:
parent
be1f68f39e
commit
c02e424911
3 changed files with 4 additions and 18 deletions
|
|
@ -1480,8 +1480,6 @@ nsGenericHTMLElement::MapImageSizeAttributesInto(const nsMappedAttributes* aAttr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2020-07-15 (RealityRipple) Much of this is a guess based on a few sources.
|
|
||||||
// Please go over this with a fine-tooth comb before production.
|
|
||||||
if (Preferences::GetBool("layout.css.width-and-height-map-to-aspect-ratio.enabled") &&
|
if (Preferences::GetBool("layout.css.width-and-height-map-to-aspect-ratio.enabled") &&
|
||||||
aMapAspectRatio && aWidth && aHeight) {
|
aMapAspectRatio && aWidth && aHeight) {
|
||||||
Maybe<double> w;
|
Maybe<double> w;
|
||||||
|
|
|
||||||
|
|
@ -287,10 +287,6 @@ nsImageFrame::Init(nsIContent* aContent,
|
||||||
p->AdjustPriority(-1);
|
p->AdjustPriority(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2020-07-14 (RealityRipple) Firefox is doing this completely differently
|
|
||||||
// because of loading="lazy" support and the StyleDisplay()->IsContainSize()
|
|
||||||
// property. Double-check all of this for problems.
|
|
||||||
|
|
||||||
static IntrinsicSize
|
static IntrinsicSize
|
||||||
ComputeIntrinsicSize(imgIContainer* aImage,
|
ComputeIntrinsicSize(imgIContainer* aImage,
|
||||||
bool aUseMappedRatio,
|
bool aUseMappedRatio,
|
||||||
|
|
|
||||||
|
|
@ -234,22 +234,14 @@ nsSVGOuterSVGFrame::GetIntrinsicSize()
|
||||||
|
|
||||||
/* virtual */ AspectRatio
|
/* virtual */ AspectRatio
|
||||||
nsSVGOuterSVGFrame::GetIntrinsicRatio()
|
nsSVGOuterSVGFrame::GetIntrinsicRatio()
|
||||||
{
|
{
|
||||||
// 2020-07-14 (RealityRipple) Firefox Uses a new IsReplacedAndContainSize(this)
|
// When 'contain: size' is implemented, make sure to check for it.
|
||||||
// function call [Line 96-99 on trunk].
|
|
||||||
/*
|
/*
|
||||||
static inline bool IsReplacedAndContainSize(const nsSVGOuterSVGFrame* aFrame) {
|
if (this->GetContent->GetParent() && this->StyleDisplay()->IsContainSize()) {
|
||||||
return aFrame->GetContent->GetParent() &&
|
|
||||||
aFrame->StyleDisplay()->IsContainSize();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
// but since contain: size doesn't exist in Pale Moon yet...
|
|
||||||
/*
|
|
||||||
if (IsReplacedAndContainSize(this)) {
|
|
||||||
return AspectRatio();
|
return AspectRatio();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// We only have an intrinsic size/ratio if our width and height attributes
|
// We only have an intrinsic size/ratio if our width and height attributes
|
||||||
// are both specified and set to non-percentage values, or we have a viewBox
|
// are both specified and set to non-percentage values, or we have a viewBox
|
||||||
// rect: http://www.w3.org/TR/SVGMobile12/coords.html#IntrinsicSizing
|
// rect: http://www.w3.org/TR/SVGMobile12/coords.html#IntrinsicSizing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue