diff --git a/components/style/gecko/media_queries.rs b/components/style/gecko/media_queries.rs index c5a5c5723af..d937b67dfe1 100644 --- a/components/style/gecko/media_queries.rs +++ b/components/style/gecko/media_queries.rs @@ -511,24 +511,24 @@ impl Device { /// Returns the current effective text zoom. #[inline] - fn effective_text_zoom(&self) -> f32 { + fn text_zoom(&self) -> f32 { let pc = match self.pres_context() { Some(pc) => pc, None => return 1., }; - pc.mEffectiveTextZoom + pc.mTextZoom } /// Applies text zoom to a font-size or line-height value (see nsStyleFont::ZoomText). #[inline] pub fn zoom_text(&self, size: Length) -> Length { - size.scale_by(self.effective_text_zoom()) + size.scale_by(self.text_zoom()) } /// Un-apply text zoom. #[inline] pub fn unzoom_text(&self, size: Length) -> Length { - size.scale_by(1. / self.effective_text_zoom()) + size.scale_by(1. / self.text_zoom()) } /// Returns safe area insets