Replace downcast with is

This commit is contained in:
DarkDrek 2017-07-30 02:29:10 +02:00
parent 3ef182ca36
commit 53476f2397
2 changed files with 2 additions and 2 deletions

View file

@ -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);