aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index 5746446d2cf..15bbf285a69 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -175,6 +175,11 @@ impl StylesheetSet {
self.dirty = false;
self.invalidations.flush(document_element);
+ self.iter()
+ }
+
+ /// Returns an iterator over the current list of stylesheets.
+ pub fn iter(&self) -> StylesheetIterator {
StylesheetIterator(self.entries.iter())
}