mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #8476 - frewsxcv:unnecessary-document-notification, r=nox
Remove unnecessary 'node changed' notification This same notification already happens in `CharacterData::SetData` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8476) <!-- Reviewable:end -->
This commit is contained in:
commit
1b20bc90ee
1 changed files with 0 additions and 4 deletions
|
@ -1935,10 +1935,6 @@ impl NodeMethods for Node {
|
|||
NodeTypeId::CharacterData(..) => {
|
||||
let characterdata = self.downcast::<CharacterData>().unwrap();
|
||||
characterdata.SetData(value);
|
||||
|
||||
// Notify the document that the content of this node is different
|
||||
let document = self.owner_doc();
|
||||
document.content_changed(self, NodeDamage::OtherNodeDamage);
|
||||
}
|
||||
NodeTypeId::DocumentType |
|
||||
NodeTypeId::Document => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue