mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
stylo: Disable text-zoom for <svg:text>
This commit is contained in:
parent
fb107d8cd5
commit
0e3f7d782b
5 changed files with 94 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue