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:
Emilio Cobos Álvarez 2017-08-21 20:17:24 +02:00
parent cbf388a5fd
commit 0701c0c953
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 10 additions and 5 deletions

View file

@ -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>,