aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/values/specified/mod.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-04-27 19:52:28 +0000
committerMartin Robinson <mrobinson@igalia.com>2023-11-21 15:36:35 +0100
commit1182296c4b1ce682f170bc5398a92a01f425b2e9 (patch)
tree492745d507fa671e0e7a9329fbbb0452f97fee59 /components/style/values/specified/mod.rs
parenta523fffc9ea694632c0d4a747ae2cbba982c125c (diff)
downloadservo-1182296c4b1ce682f170bc5398a92a01f425b2e9.tar.gz
servo-1182296c4b1ce682f170bc5398a92a01f425b2e9.zip
style: Enable all math functions on chrome code
They should be stable. Not sure this is worth writing a test for since the idea is that this code goes away eventually. Differential Revision: https://phabricator.services.mozilla.com/D176680
Diffstat (limited to 'components/style/values/specified/mod.rs')
-rw-r--r--components/style/values/specified/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/values/specified/mod.rs b/components/style/values/specified/mod.rs
index 3dedfa221ca..1acf622980c 100644
--- a/components/style/values/specified/mod.rs
+++ b/components/style/values/specified/mod.rs
@@ -199,7 +199,7 @@ fn parse_number_with_clamping_mode<'i, 't>(
})
},
Token::Function(ref name) => {
- let function = CalcNode::math_function(name, location)?;
+ let function = CalcNode::math_function(context, name, location)?;
let result = CalcNode::parse_number(context, input, function)?;
Ok(Number {
value: result.min(f32::MAX).max(f32::MIN),
@@ -633,7 +633,7 @@ impl Parse for Integer {
int_value: Some(v), ..
} => Ok(Integer::new(v)),
Token::Function(ref name) => {
- let function = CalcNode::math_function(name, location)?;
+ let function = CalcNode::math_function(context, name, location)?;
let result = CalcNode::parse_integer(context, input, function)?;
Ok(Integer::from_calc(result))
},