aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-02-08 11:55:50 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-02-09 13:27:30 +0100
commitf1516d228f54d2ceed40ce894b3487ef4e6fbb3a (patch)
tree3e2f3013d578c13cdf213e8ff565067b3a1e2130 /components/script/dom/document.rs
parent7e501f50f7ef71c6f877bb2ebbaaeaf0162b5f43 (diff)
downloadservo-f1516d228f54d2ceed40ce894b3487ef4e6fbb3a.tar.gz
servo-f1516d228f54d2ceed40ce894b3487ef4e6fbb3a.zip
style: Rename StylesheetSet to DocumentStylesheetSet.
MozReview-Commit-ID: 5Xl1eRLu1VF
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 8df8ba23d9a..a24382ab80a 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -135,7 +135,7 @@ use style::media_queries::{Device, MediaList, MediaType};
use style::selector_parser::{RestyleDamage, Snapshot};
use style::shared_lock::{SharedRwLock as StyleSharedRwLock, SharedRwLockReadGuard};
use style::str::{HTML_SPACE_CHARACTERS, split_html_space_chars, str_join};
-use style::stylesheet_set::StylesheetSet;
+use style::stylesheet_set::DocumentStylesheetSet;
use style::stylesheets::{Stylesheet, StylesheetContents, Origin, OriginSet};
use task_source::TaskSource;
use time;
@@ -262,7 +262,7 @@ pub struct Document {
/// Can be acquired once for accessing many objects.
style_shared_lock: StyleSharedRwLock,
/// List of stylesheets associated with nodes in this document. |None| if the list needs to be refreshed.
- stylesheets: DomRefCell<StylesheetSet<StyleSheetInDocument>>,
+ stylesheets: DomRefCell<DocumentStylesheetSet<StyleSheetInDocument>>,
stylesheet_list: MutNullableDom<StyleSheetList>,
ready_state: Cell<DocumentReadyState>,
/// Whether the DOMContentLoaded event has already been dispatched.
@@ -1466,7 +1466,7 @@ impl Document {
// Mark the document element dirty so a reflow will be performed.
//
- // FIXME(emilio): Use the StylesheetSet invalidation stuff.
+ // FIXME(emilio): Use the DocumentStylesheetSet invalidation stuff.
if let Some(element) = self.GetDocumentElement() {
element.upcast::<Node>().dirty(NodeDamage::NodeStyleDamaged);
}
@@ -2264,7 +2264,7 @@ impl Document {
PER_PROCESS_AUTHOR_SHARED_LOCK.clone()
//StyleSharedRwLock::new()
},
- stylesheets: DomRefCell::new(StylesheetSet::new()),
+ stylesheets: DomRefCell::new(DocumentStylesheetSet::new()),
stylesheet_list: MutNullableDom::new(None),
ready_state: Cell::new(ready_state),
domcontentloaded_dispatched: Cell::new(domcontentloaded_dispatched),
@@ -3807,7 +3807,7 @@ impl DocumentMethods for Document {
self.scripts.set(None);
self.anchors.set(None);
self.applets.set(None);
- *self.stylesheets.borrow_mut() = StylesheetSet::new();
+ *self.stylesheets.borrow_mut() = DocumentStylesheetSet::new();
self.animation_frame_ident.set(0);
self.animation_frame_list.borrow_mut().clear();
self.pending_restyles.borrow_mut().clear();