mirror of
https://github.com/servo/servo.git
synced 2025-07-15 11:23:39 +01:00
Don't increment node revision twice when attaching shadow root to element (#37865)
`Node::dirty` already increments the version. `Node::rev_version` traverses all ancestors, so it can end up being fairly expensive. Testing: I'm not sure about WPT coverage but I think this change is trivial enough to merge without tests. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
cf408f7302
commit
a6b27c5078
1 changed files with 0 additions and 1 deletions
|
@ -683,7 +683,6 @@ impl Element {
|
||||||
|
|
||||||
let node = self.upcast::<Node>();
|
let node = self.upcast::<Node>();
|
||||||
node.dirty(NodeDamage::Other);
|
node.dirty(NodeDamage::Other);
|
||||||
node.rev_version();
|
|
||||||
|
|
||||||
Ok(shadow_root)
|
Ok(shadow_root)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue