aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/window.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2013-11-09 03:55:30 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2013-11-14 20:35:36 +0900
commitf5ef4365f46d31cb4aa85474345a5d2c20e86590 (patch)
treee4ac7016de573cfc179e1121d93eb384b3ef2fd7 /src/components/script/dom/window.rs
parentb1762655e6ce7e9ff8a79710a5b10bef34a3c26b (diff)
downloadservo-f5ef4365f46d31cb4aa85474345a5d2c20e86590.tar.gz
servo-f5ef4365f46d31cb4aa85474345a5d2c20e86590.zip
Stop passing DOMStrings via borrowed pointer. (#1201)
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r--src/components/script/dom/window.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs
index 093e699d3f5..64edfdf4baf 100644
--- a/src/components/script/dom/window.rs
+++ b/src/components/script/dom/window.rs
@@ -72,9 +72,9 @@ pub struct TimerData {
}
impl Window {
- pub fn Alert(&self, s: &DOMString) {
+ pub fn Alert(&self, s: DOMString) {
// Right now, just print to the console
- println(format!("ALERT: {:s}", *s));
+ println(format!("ALERT: {:s}", s));
}
pub fn Close(&self) {
@@ -89,14 +89,14 @@ impl Window {
~""
}
- pub fn SetName(&self, _name: &DOMString) {
+ pub fn SetName(&self, _name: DOMString) {
}
pub fn Status(&self) -> DOMString {
~""
}
- pub fn SetStatus(&self, _status: &DOMString) {
+ pub fn SetStatus(&self, _status: DOMString) {
}
pub fn Closed(&self) -> bool {
@@ -123,18 +123,18 @@ impl Window {
self.navigator.unwrap()
}
- pub fn Confirm(&self, _message: &DOMString) -> bool {
+ pub fn Confirm(&self, _message: DOMString) -> bool {
false
}
- pub fn Prompt(&self, _message: &DOMString, _default: &DOMString) -> Option<DOMString> {
+ pub fn Prompt(&self, _message: DOMString, _default: DOMString) -> Option<DOMString> {
None
}
pub fn Print(&self) {
}
- pub fn ShowModalDialog(&self, _cx: *JSContext, _url: &DOMString, _argument: JSVal) -> JSVal {
+ pub fn ShowModalDialog(&self, _cx: *JSContext, _url: DOMString, _argument: JSVal) -> JSVal {
JSVAL_NULL
}
}