stylo: Disable text-zoom for <svg:text>

This commit is contained in:
Manish Goregaokar 2017-07-30 21:56:47 -07:00 committed by Manish Goregaokar
parent fb107d8cd5
commit 0e3f7d782b
5 changed files with 94 additions and 1 deletions

View file

@ -191,6 +191,10 @@ impl Device {
pub fn zoom_text(&self, size: Au) -> Au {
size.scale_by(self.pres_context().mEffectiveTextZoom)
}
/// Un-apply text zoom (see nsStyleFont::UnzoomText).
pub fn unzoom_text(&self, size: Au) -> Au {
size.scale_by(1. / self.pres_context().mEffectiveTextZoom)
}
}
/// A expression for gecko contains a reference to the media feature, the value