mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #17247 - Manishearth:stylo-insensitive-selectors, r=SimonSapin
stylo: Make all attribute selectors respect case insensitivity r=simonsapin https://bugzilla.mozilla.org/show_bug.cgi?id=1364162 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17247) <!-- Reviewable:end -->
This commit is contained in:
commit
a6b3bf1517
5 changed files with 26 additions and 29 deletions
|
@ -619,27 +619,28 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_AttrDashEquals(element: RawGeckoElementBorrowed,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AttrIncludes(element: RawGeckoElementBorrowed,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AttrHasSubstring(element: RawGeckoElementBorrowed,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AttrHasPrefix(element: RawGeckoElementBorrowed,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AttrHasSuffix(element: RawGeckoElementBorrowed,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_ClassOrClassList(element: RawGeckoElementBorrowed,
|
||||
|
@ -669,29 +670,34 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_SnapshotAttrDashEquals(element: *const ServoElementSnapshot,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SnapshotAttrIncludes(element: *const ServoElementSnapshot,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SnapshotAttrHasSubstring(element:
|
||||
*const ServoElementSnapshot,
|
||||
ns: *mut nsIAtom,
|
||||
name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom,
|
||||
ignore_case: bool) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SnapshotAttrHasPrefix(element: *const ServoElementSnapshot,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SnapshotAttrHasSuffix(element: *const ServoElementSnapshot,
|
||||
ns: *mut nsIAtom, name: *mut nsIAtom,
|
||||
str: *mut nsIAtom) -> bool;
|
||||
str: *mut nsIAtom, ignore_case: bool)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SnapshotClassOrClassList(element:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue