aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstyledeclaration.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-02-24 17:28:24 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-02-24 17:52:17 +0100
commit0adfb080899104d4b51f6de3012ecf0558199b73 (patch)
tree60a23222f06c60f0f755158617d6256a23a1f5e2 /components/script/dom/cssstyledeclaration.rs
parentf7fb03518836ba45b0883aaaf3b8d38a6ff5eae1 (diff)
downloadservo-0adfb080899104d4b51f6de3012ecf0558199b73.tar.gz
servo-0adfb080899104d4b51f6de3012ecf0558199b73.zip
Implement From<DOMString> for Atom
Diffstat (limited to 'components/script/dom/cssstyledeclaration.rs')
-rw-r--r--components/script/dom/cssstyledeclaration.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index f6683f9eae5..7c61098dc88 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -146,7 +146,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
// Step 1
property.make_ascii_lowercase();
- let property = Atom::from(&*property);
+ let property = Atom::from(property);
if self.readonly {
// Readonly style declarations are used for getComputedStyle.
@@ -185,7 +185,7 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
fn GetPropertyPriority(&self, mut property: DOMString) -> DOMString {
// Step 1
property.make_ascii_lowercase();
- let property = Atom::from(&*property);
+ let property = Atom::from(property);
// Step 2
if let Some(shorthand) = Shorthand::from_name(&property) {