mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Rename -moz-math-script-level to math-depth.
This renames the internal -moz-math-script-level property in order to prepare for full math-depth support. Currently, the property is guarded under a disabled-by-default flag, so there should be no observable behavior change. Differential Revision: https://phabricator.services.mozilla.com/D91285
This commit is contained in:
parent
4a625be8ad
commit
4dfcf583cf
8 changed files with 27 additions and 26 deletions
|
@ -963,7 +963,7 @@ impl<'a, 'b: 'a> Cascade<'a, 'b> {
|
|||
fn handle_mathml_scriptlevel_if_needed(&mut self) {
|
||||
use crate::values::generics::NonNegative;
|
||||
|
||||
if !self.seen.contains(LonghandId::MozScriptLevel) &&
|
||||
if !self.seen.contains(LonghandId::MathDepth) &&
|
||||
!self.seen.contains(LonghandId::MozScriptMinSize) &&
|
||||
!self.seen.contains(LonghandId::MozScriptSizeMultiplier) {
|
||||
return;
|
||||
|
@ -980,7 +980,7 @@ impl<'a, 'b: 'a> Cascade<'a, 'b> {
|
|||
let parent_font = builder.get_parent_font().gecko();
|
||||
|
||||
let delta =
|
||||
font.mScriptLevel.saturating_sub(parent_font.mScriptLevel);
|
||||
font.mMathDepth.saturating_sub(parent_font.mMathDepth);
|
||||
|
||||
if delta == 0 {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue