mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Use less Au in font code.
Font code is the only thing that was using Au in the style system without interfacing with Gecko, and there was no real reason for it to do so. This slightly simplifies the code. Differential Revision: https://phabricator.services.mozilla.com/D57248
This commit is contained in:
parent
4cd8813a81
commit
a541046147
13 changed files with 62 additions and 89 deletions
|
@ -715,7 +715,7 @@ pub trait MatchMethods: TElement {
|
|||
.map_or(true, |s| s.get_font().clone_font_size() != new_font_size)
|
||||
{
|
||||
debug_assert!(self.owner_doc_matches_for_testing(device));
|
||||
device.set_root_font_size(new_font_size.size());
|
||||
device.set_root_font_size(new_font_size.size().into());
|
||||
// If the root font-size changed since last time, and something
|
||||
// in the document did use rem units, ensure we recascade the
|
||||
// entire tree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue