diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index a300dd8d3d42..a42bd753faa2 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -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: diff --git a/components/style/gecko/snapshot.rs b/components/style/gecko/snapshot.rs index d238151fd9af..b2f7907a64a0 100644 --- a/components/style/gecko/snapshot.rs +++ b/components/style/gecko/snapshot.rs @@ -94,30 +94,35 @@ impl GeckoElementSnapshot { ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::DashMatch => bindings::Gecko_SnapshotAttrDashEquals( self, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Prefix => bindings::Gecko_SnapshotAttrHasPrefix( self, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Suffix => bindings::Gecko_SnapshotAttrHasSuffix( self, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Substring => bindings::Gecko_SnapshotAttrHasSubstring( self, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), } } diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 750cb8b5a538..31a82df797a7 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1352,30 +1352,35 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::DashMatch => bindings::Gecko_AttrDashEquals( self.0, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Prefix => bindings::Gecko_AttrHasPrefix( self.0, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Suffix => bindings::Gecko_AttrHasSuffix( self.0, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), AttrSelectorOperator::Substring => bindings::Gecko_AttrHasSubstring( self.0, ns.atom_or_null(), local_name.as_ptr(), expected_value.as_ptr(), + ignore_case, ), } }