mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Remove a couple trivial dependencies on nsPresContext.
Differential Revision: https://phabricator.services.mozilla.com/D20141
This commit is contained in:
parent
3231714758
commit
dcfe30ff18
9 changed files with 32 additions and 34 deletions
|
@ -98,7 +98,7 @@ pub mod system_colors {
|
|||
unsafe {
|
||||
Gecko_GetLookAndFeelSystemColor(
|
||||
*self as i32,
|
||||
cx.device().pres_context(),
|
||||
cx.device().document(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -396,7 +396,7 @@ ${helpers.predefined_type(
|
|||
&mut system,
|
||||
id as i32,
|
||||
cx.style().get_font().gecko(),
|
||||
cx.device().pres_context()
|
||||
cx.device().document()
|
||||
)
|
||||
}
|
||||
let font_weight = longhands::font_weight::computed_value::T::from_gecko_weight(system.weight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue