mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 03:47:31 +09:00
Issue #1826 - Add typed calc() arithmetic for media queries
This commit is contained in:
parent
8af3f489da
commit
79800a9113
4 changed files with 134 additions and 17 deletions
|
|
@ -314,8 +314,11 @@ nsMediaExpression::Matches(nsPresContext *aPresContext,
|
|||
"bad required value");
|
||||
nscoord actualCoord = nsRuleNode::CalcLengthWithInitialFont(
|
||||
aPresContext, actual);
|
||||
nscoord requiredCoord = nsRuleNode::CalcLengthWithInitialFont(
|
||||
aPresContext, required);
|
||||
nscoord requiredCoord;
|
||||
if (!ComputeMediaQueryTypedCalcLength(aPresContext, required,
|
||||
requiredCoord)) {
|
||||
return false;
|
||||
}
|
||||
cmp = DoCompare(actualCoord, requiredCoord);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue