mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Fix potential clippy warning for NodeDamage enum variant (#37391)
The default of `enum-variant-name-threshold` is 3, so adding any new variants will lead to the lint being triggered, reference: [enum_variant_names](https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names). This PR fix this potential clippy lint warning for facilitate the addition of new variant in following PR about incremental box tree update. Testing: No logic changed, just covered by existing WPT tests Fixes: None Signed-off-by: sharpshooter_pt <ibluegalaxy_taoj@163.com>
This commit is contained in:
@@ -215,7 +215,7 @@ impl ShadowRoot {
|
||||
self.author_styles.borrow_mut().stylesheets.force_dirty();
|
||||
// Mark the host element dirty so a reflow will be performed.
|
||||
if let Some(host) = self.host.get() {
|
||||
host.upcast::<Node>().dirty(NodeDamage::NodeStyleDamaged);
|
||||
host.upcast::<Node>().dirty(NodeDamage::Style);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user