style: Only zoom absolute lengths.

As silly as it may seem to specify font-sizes using viewport units, we weren't
handling zoom for them correctly either.

Bug: 1388588
Reviewed-by: Manishearth
MozReview-Commit-ID: 3Q6phYAu5CE
This commit is contained in:
Emilio Cobos Álvarez 2017-08-09 16:23:49 +02:00
parent 77cb5371b3
commit 7d813d8f25
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 31 additions and 14 deletions

View file

@ -135,8 +135,7 @@ impl<'a> Context<'a> {
&self.builder
}
/// Apply text-zoom if enabled
/// Apply text-zoom if enabled.
#[cfg(feature = "gecko")]
pub fn maybe_zoom_text(&self, size: NonNegativeAu) -> NonNegativeAu {
// We disable zoom for <svg:text> by unsetting the