mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
style: Make Element::id not clone the attribute.
This commit is contained in:
parent
98c9292ecb
commit
f2efd04a5d
10 changed files with 46 additions and 37 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! Selector matching.
|
||||
|
||||
use {Atom, LocalName, Namespace};
|
||||
use {Atom, LocalName, Namespace, WeakAtom};
|
||||
use applicable_declarations::{ApplicableDeclarationBlock, ApplicableDeclarationList};
|
||||
use context::{CascadeInputs, QuirksMode};
|
||||
use dom::TElement;
|
||||
|
@ -1385,7 +1385,7 @@ impl Stylist {
|
|||
#[inline]
|
||||
pub fn may_have_rules_for_id<E>(
|
||||
&self,
|
||||
id: &Atom,
|
||||
id: &WeakAtom,
|
||||
element: E,
|
||||
) -> bool
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue