mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Part 2. Use Device for parameter instead of CssEnvironment.
CssEnvironment always is in Device, so use Device as parameter instead of CssEnvironment. Differential Revision: https://phabricator.services.mozilla.com/D52507
This commit is contained in:
parent
c5bd98354d
commit
80a1b64384
5 changed files with 31 additions and 30 deletions
|
@ -250,7 +250,7 @@ where
|
|||
let custom_properties = {
|
||||
let mut builder = CustomPropertiesBuilder::new(
|
||||
inherited_style.custom_properties(),
|
||||
device.environment(),
|
||||
device,
|
||||
);
|
||||
|
||||
for (declaration, origin) in iter_declarations() {
|
||||
|
@ -424,7 +424,7 @@ impl<'a, 'b: 'a> Cascade<'a, 'b> {
|
|||
declaration.id,
|
||||
self.context.builder.custom_properties.as_ref(),
|
||||
self.context.quirks_mode,
|
||||
self.context.device().environment(),
|
||||
self.context.device(),
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue