aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/comment.rs
diff options
context:
space:
mode:
authorMatt McCoy <mattnenterprise@yahoo.com>2015-01-07 18:42:06 -0500
committerMatt McCoy <matt.mccoy@threewide.com>2015-01-07 18:52:41 -0500
commit85df7f0d6f4f66ad64130ecb09225bb94377737d (patch)
treea91a97b7fffcabdde988e7664dcd7da093fe7c31 /components/script/dom/comment.rs
parentcf616b90a236f88058dbad74b568b4d4379d2829 (diff)
downloadservo-85df7f0d6f4f66ad64130ecb09225bb94377737d.tar.gz
servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.zip
Fixes #4164 Make Constructor and new functions take GlobalRef by value
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r--components/script/dom/comment.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs
index 40d9a5da9b6..8d81c47f978 100644
--- a/components/script/dom/comment.rs
+++ b/components/script/dom/comment.rs
@@ -38,7 +38,7 @@ impl Comment {
document, CommentBinding::Wrap)
}
- pub fn Constructor(global: &GlobalRef, data: DOMString) -> Fallible<Temporary<Comment>> {
+ pub fn Constructor(global: GlobalRef, data: DOMString) -> Fallible<Temporary<Comment>> {
let document = global.as_window().Document().root();
Ok(Comment::new(data, document.r()))
}