diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-09-13 19:52:49 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-09-13 19:52:49 +0200 |
commit | d7a3bec6d779aca97c20286383f6ce2ae8647da5 (patch) | |
tree | 051b4e381bfcd2f18417c0716ecdd79123ebc1c6 /components/style/stylesheet_set.rs | |
parent | 31079e2e3dfba8aa2a18ec06e4107f9080660b86 (diff) | |
download | servo-d7a3bec6d779aca97c20286383f6ce2ae8647da5.tar.gz servo-d7a3bec6d779aca97c20286383f6ce2ae8647da5.zip |
style: Add a comment about why the raw pointer is ok.
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r-- | components/style/stylesheet_set.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs index 2611208d99e..328237ccbae 100644 --- a/components/style/stylesheet_set.rs +++ b/components/style/stylesheet_set.rs @@ -115,6 +115,8 @@ where { guard: &'a SharedRwLockReadGuard<'b>, origins_dirty: OriginSetIterator, + // NB: Bound to the StylesheetSet lifetime when constructed, see + // StylesheetSet::flush. collections: *mut PerOrigin<SheetCollection<S>>, current: Option<slice::IterMut<'a, StylesheetSetEntry<S>>>, origin_data_validity: PerOrigin<OriginValidity>, |