aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/cssstyledeclaration.rs2
-rw-r--r--components/script/dom/webglrenderingcontext.rs4
-rw-r--r--components/script/dom/window.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index eb0e473ca41..1e0b13b2ee3 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -211,7 +211,7 @@ impl<'a> CSSStyleDeclarationMethods for JSRef<'a, CSSStyleDeclaration> {
}
// Step 6
- let mut synthesized_declaration = String::from_str(&property);
+ let mut synthesized_declaration = property;
synthesized_declaration.push_str(": ");
synthesized_declaration.push_str(&value);
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 1ce9561d90a..786a3c25620 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -101,10 +101,10 @@ impl<'a> WebGLRenderingContextMethods for JSRef<'a, WebGLRenderingContext> {
// TODO(ecoal95): Implement the missing parameters from the spec
match parameter {
WebGLRenderingContextConstants::VERSION =>
- DOMString::from_str("WebGL 1.0").to_jsval(cx),
+ "WebGL 1.0".to_jsval(cx),
WebGLRenderingContextConstants::RENDERER |
WebGLRenderingContextConstants::VENDOR =>
- DOMString::from_str("Mozilla/Servo").to_jsval(cx),
+ "Mozilla/Servo".to_jsval(cx),
_ => NullValue(),
}
}
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 8be87d5be17..c6de7bcca82 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1038,7 +1038,7 @@ fn should_move_clip_rect(clip_rect: Rect<Au>, new_viewport: Rect<f32>) -> bool{
}
fn debug_reflow_events(goal: &ReflowGoal, query_type: &ReflowQueryType, reason: &ReflowReason) {
- let mut debug_msg = String::from_str("****");
+ let mut debug_msg = "****".to_owned();
debug_msg.push_str(match *goal {
ReflowGoal::ForDisplay => "\tForDisplay",
ReflowGoal::ForScriptQuery => "\tForScriptQuery",