mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Change device and rule_set references to accessors
This commit is contained in:
parent
0ad0641872
commit
4196156bb9
7 changed files with 37 additions and 22 deletions
|
@ -150,7 +150,7 @@ pub struct SharedStyleContext<'a> {
|
|||
impl<'a> SharedStyleContext<'a> {
|
||||
/// Return a suitable viewport size in order to be used for viewport units.
|
||||
pub fn viewport_size(&self) -> Size2D<Au> {
|
||||
self.stylist.device.au_viewport_size()
|
||||
self.stylist.device().au_viewport_size()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue