mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Shrink selectors::Component, add case-insensitive for other attr selectors
* https://bugzilla.mozilla.org/show_bug.cgi?id=1364148 * https://bugzilla.mozilla.org/show_bug.cgi?id=1364162
This commit is contained in:
parent
83c7824fda
commit
9376abdd2c
15 changed files with 377 additions and 357 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use parser::{AttrSelector, Combinator, Component};
|
||||
use parser::{SelectorImpl, SelectorIter};
|
||||
use attr::NamespaceConstraint;
|
||||
use parser::{Combinator, Component, SelectorImpl, SelectorIter};
|
||||
|
||||
/// A trait to visit selector properties.
|
||||
///
|
||||
|
@ -20,7 +20,12 @@ pub trait SelectorVisitor {
|
|||
/// Visit an attribute selector that may match (there are other selectors
|
||||
/// that may never match, like those containing whitespace or the empty
|
||||
/// string).
|
||||
fn visit_attribute_selector(&mut self, _: &AttrSelector<Self::Impl>) -> bool {
|
||||
fn visit_attribute_selector(
|
||||
&mut self,
|
||||
_namespace: &NamespaceConstraint<&<Self::Impl as SelectorImpl>::NamespaceUrl>,
|
||||
_local_name: &<Self::Impl as SelectorImpl>::LocalName,
|
||||
_local_name_lower: &<Self::Impl as SelectorImpl>::LocalName,
|
||||
) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue