aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/documentfragment.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-15 12:09:21 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-15 15:33:56 +0200
commitf963ed99ac6b31b15da8c58cf45f142f93d001f1 (patch)
treed42534c2af39f994a4f708cd9f72d18c5d51fb42 /src/components/script/dom/documentfragment.rs
parentab1a188e953faa8e99d10984a64a5474eeb1ff56 (diff)
downloadservo-f963ed99ac6b31b15da8c58cf45f142f93d001f1.tar.gz
servo-f963ed99ac6b31b15da8c58cf45f142f93d001f1.zip
Rename variables that refer to global objects.
This clarifies whether those variables will point to a Window object or an arbitrary global object. Note in particular that all IDL Constructors will accept an arbitrary global object.
Diffstat (limited to 'src/components/script/dom/documentfragment.rs')
-rw-r--r--src/components/script/dom/documentfragment.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/documentfragment.rs b/src/components/script/dom/documentfragment.rs
index eec2cddac5a..0af2c79a0b1 100644
--- a/src/components/script/dom/documentfragment.rs
+++ b/src/components/script/dom/documentfragment.rs
@@ -40,8 +40,8 @@ impl DocumentFragment {
Node::reflect_node(box node, document, DocumentFragmentBinding::Wrap)
}
- pub fn Constructor(owner: &JSRef<Window>) -> Fallible<Temporary<DocumentFragment>> {
- let document = owner.Document();
+ pub fn Constructor(global: &JSRef<Window>) -> Fallible<Temporary<DocumentFragment>> {
+ let document = global.Document();
let document = document.root();
Ok(DocumentFragment::new(&document.root_ref()))