mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Move root font size handling outside of the cascade.
And merge it with the rest of the code handling root font-size changes. MozReview-Commit-ID: 3rW1C3mXiMd
This commit is contained in:
parent
1425ad1bab
commit
5d03ba3cbe
2 changed files with 8 additions and 10 deletions
|
@ -2901,11 +2901,6 @@ pub fn apply_declarations<'a, F, I>(device: &Device,
|
|||
error_reporter);
|
||||
% endif
|
||||
}
|
||||
|
||||
if context.is_root_element {
|
||||
let s = context.style.get_font().clone_font_size();
|
||||
context.device.set_root_font_size(s);
|
||||
}
|
||||
% endif
|
||||
% endfor
|
||||
|
||||
|
@ -2938,7 +2933,6 @@ pub fn apply_declarations<'a, F, I>(device: &Device,
|
|||
style.build()
|
||||
}
|
||||
|
||||
|
||||
/// See StyleAdjuster::adjust_for_border_width.
|
||||
pub fn adjust_border_width(style: &mut StyleBuilder) {
|
||||
% for side in ["top", "right", "bottom", "left"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue