diff options
Diffstat (limited to 'components/script/dom/characterdata.rs')
-rw-r--r-- | components/script/dom/characterdata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/characterdata.rs b/components/script/dom/characterdata.rs index 9db34a49f8c..747589ada5d 100644 --- a/components/script/dom/characterdata.rs +++ b/components/script/dom/characterdata.rs @@ -91,7 +91,7 @@ impl CharacterDataMethods for CharacterData { // If this is a Text node, we might need to re-parse (say, if our parent // is a <style> element.) We don't need to if this is a Comment or // ProcessingInstruction. - if let Some(_) = self.downcast::<Text>() { + if self.is::<Text>() { if let Some(parent_node) = node.GetParentNode() { let mutation = ChildrenMutation::ChangeText; vtable_for(&parent_node).children_changed(&mutation); |