diff options
author | Andy <webmaster@RealityRipple.com> | 2020-08-07 14:29:41 -0700 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:23:37 +0000 |
commit | c75e412f17a0cfcf4036a4c7a87ad1476601cc5e (patch) | |
tree | a04f0411a4c68898ab0788f709d49f437738b3e0 /layout/svg | |
parent | 0bbe6ec10589b8540aa86200bf2b209ad4e563ba (diff) | |
download | UXP-c75e412f17a0cfcf4036a4c7a87ad1476601cc5e.tar UXP-c75e412f17a0cfcf4036a4c7a87ad1476601cc5e.tar.gz UXP-c75e412f17a0cfcf4036a4c7a87ad1476601cc5e.tar.lz UXP-c75e412f17a0cfcf4036a4c7a87ad1476601cc5e.tar.xz UXP-c75e412f17a0cfcf4036a4c7a87ad1476601cc5e.zip |
Issue #1620 - Remove Development Comments
Diffstat (limited to 'layout/svg')
-rw-r--r-- | layout/svg/nsSVGOuterSVGFrame.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/layout/svg/nsSVGOuterSVGFrame.cpp b/layout/svg/nsSVGOuterSVGFrame.cpp index d8cd2cb77..3f68245e2 100644 --- a/layout/svg/nsSVGOuterSVGFrame.cpp +++ b/layout/svg/nsSVGOuterSVGFrame.cpp @@ -234,22 +234,14 @@ nsSVGOuterSVGFrame::GetIntrinsicSize() /* virtual */ AspectRatio nsSVGOuterSVGFrame::GetIntrinsicRatio() -{ - // 2020-07-14 (RealityRipple) Firefox Uses a new IsReplacedAndContainSize(this) - // function call [Line 96-99 on trunk]. +{ + // When 'contain: size' is implemented, make sure to check for it. /* - static inline bool IsReplacedAndContainSize(const nsSVGOuterSVGFrame* aFrame) { - return aFrame->GetContent->GetParent() && - aFrame->StyleDisplay()->IsContainSize(); - } - */ - // but since contain: size doesn't exist in Pale Moon yet... -/* - if (IsReplacedAndContainSize(this)) { + if (this->GetContent->GetParent() && this->StyleDisplay()->IsContainSize()) { return AspectRatio(); } */ - + // 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 // rect: http://www.w3.org/TR/SVGMobile12/coords.html#IntrinsicSizing |