mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Add docs about the lack of device in the stylesheet set.
Also add a few comments and similar about pending invalidation work, and avoid passing a device in script, since the work it performs scanning the stylesheet is just thrown away in the `flush_without_invalidations` call.
This commit is contained in:
parent
cbf388a5fd
commit
0701c0c953
2 changed files with 10 additions and 5 deletions
|
@ -106,6 +106,8 @@ where
|
|||
}
|
||||
|
||||
/// Appends a new stylesheet to the current set.
|
||||
///
|
||||
/// No device implies not computing invalidations.
|
||||
pub fn append_stylesheet(
|
||||
&mut self,
|
||||
device: Option<&Device>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue