aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlfontelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlfontelement.rs')
-rw-r--r--components/script/dom/htmlfontelement.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/htmlfontelement.rs b/components/script/dom/htmlfontelement.rs
index 9bdd32bb5c4..641dd8a92f3 100644
--- a/components/script/dom/htmlfontelement.rs
+++ b/components/script/dom/htmlfontelement.rs
@@ -92,10 +92,10 @@ impl VirtualMethods for HTMLFontElement {
}
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {
- match name {
- &local_name!("face") => AttrValue::from_atomic(value.into()),
- &local_name!("color") => AttrValue::from_legacy_color(value.into()),
- &local_name!("size") => parse_size(&value),
+ match *name {
+ local_name!("face") => AttrValue::from_atomic(value.into()),
+ local_name!("color") => AttrValue::from_legacy_color(value.into()),
+ local_name!("size") => parse_size(&value),
_ => self
.super_type()
.unwrap()
@@ -174,7 +174,7 @@ fn parse_size(mut input: &str) -> AttrValue {
// Step 9
match parse_mode {
- ParseMode::RelativePlus => value = 3 + value,
+ ParseMode::RelativePlus => value += 3,
ParseMode::RelativeMinus => value = 3 - value,
ParseMode::Absolute => (),
}