mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Handle nested slots correctly in slotted matching and invalidation.
The patch and test should be pretty much self-descriptive. Differential Revision: https://phabricator.services.mozilla.com/D14063
This commit is contained in:
parent
a519d9ecc3
commit
7f5a9e0f45
3 changed files with 45 additions and 17 deletions
|
@ -11,9 +11,8 @@ use crate::parser::SelectorImpl;
|
|||
use std::fmt::Debug;
|
||||
use std::ptr::NonNull;
|
||||
|
||||
/// Opaque representation of an Element, for identity comparisons. We use
|
||||
/// NonZeroPtrMut to get the NonZero optimization.
|
||||
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
|
||||
/// Opaque representation of an Element, for identity comparisons.
|
||||
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
|
||||
pub struct OpaqueElement(NonNull<()>);
|
||||
|
||||
unsafe impl Send for OpaqueElement {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue