mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Don't apply minimum font sizes to SVG text.
Differential Revision: https://phabricator.services.mozilla.com/D74581
This commit is contained in:
parent
ec6ecf7d21
commit
4359aae44e
3 changed files with 8 additions and 8 deletions
|
@ -920,8 +920,8 @@ impl<'a, 'b: 'a> Cascade<'a, 'b> {
|
|||
|
||||
let builder = &mut self.context.builder;
|
||||
|
||||
let parent_zoom = builder.get_parent_font().gecko().mAllowZoom;
|
||||
let zoom = builder.get_font().gecko().mAllowZoom;
|
||||
let parent_zoom = builder.get_parent_font().gecko().mAllowZoomAndMinSize;
|
||||
let zoom = builder.get_font().gecko().mAllowZoomAndMinSize;
|
||||
if zoom == parent_zoom {
|
||||
return;
|
||||
}
|
||||
|
@ -968,7 +968,7 @@ impl<'a, 'b: 'a> Cascade<'a, 'b> {
|
|||
}
|
||||
|
||||
let mut min = Au(parent_font.mScriptMinSize);
|
||||
if font.mAllowZoom {
|
||||
if font.mAllowZoomAndMinSize {
|
||||
min = builder.device.zoom_text(min);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue