style: Remove unused nsStyleFont::{EnableZoom, UnZoomText}.

Differential Revision: https://phabricator.services.mozilla.com/D5530
This commit is contained in:
Emilio Cobos Álvarez 2018-09-11 16:19:55 +02:00
parent 25db9e3be7
commit ca335ba2e4
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -234,10 +234,13 @@ impl Device {
} }
/// Applies text zoom to a font-size or line-height value (see nsStyleFont::ZoomText). /// Applies text zoom to a font-size or line-height value (see nsStyleFont::ZoomText).
#[inline]
pub fn zoom_text(&self, size: Au) -> Au { pub fn zoom_text(&self, size: Au) -> Au {
size.scale_by(self.pres_context().mEffectiveTextZoom) size.scale_by(self.pres_context().mEffectiveTextZoom)
} }
/// Un-apply text zoom (see nsStyleFont::UnzoomText).
/// Un-apply text zoom.
#[inline]
pub fn unzoom_text(&self, size: Au) -> Au { pub fn unzoom_text(&self, size: Au) -> Au {
size.scale_by(1. / self.pres_context().mEffectiveTextZoom) size.scale_by(1. / self.pres_context().mEffectiveTextZoom)
} }