diff options
author | Andy <webmaster@RealityRipple.com> | 2020-08-04 13:54:01 -0700 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:23:18 +0000 |
commit | 0bbe6ec10589b8540aa86200bf2b209ad4e563ba (patch) | |
tree | 2144747a67a4be26df207060bd9e32e8e2f7f39a /layout/style/nsRuleNode.cpp | |
parent | 48d31ea5ebe2a4901fcb542e1e48b6fd6b67d64c (diff) | |
download | UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.gz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.lz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.tar.xz UXP-0bbe6ec10589b8540aa86200bf2b209ad4e563ba.zip |
Issue #1620 - Use Intrinsic Aspect Ratio for Images (uplift)
Diffstat (limited to 'layout/style/nsRuleNode.cpp')
-rw-r--r-- | layout/style/nsRuleNode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index a0f65c069..1a451a2ef 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -8544,6 +8544,12 @@ nsRuleNode::ComputePositionData(void* aStartStruct, SETCOORD_UNSET_INITIAL, aContext, mPresContext, conditions); + // aspect-ratio: float, initial + SetFactor(*aRuleData->ValueForAspectRatio(), + pos->mAspectRatio, conditions, + parentPos->mAspectRatio, 0.0f, + SETFCT_UNSET_INITIAL | SETFCT_POSITIVE | SETFCT_NONE); + // box-sizing: enum, inherit, initial SetValue(*aRuleData->ValueForBoxSizing(), pos->mBoxSizing, conditions, |