Loading dom/base/Element.cpp +20 −31 Original line number Diff line number Diff line Loading @@ -3467,18 +3467,9 @@ Element::GetTokenList(nsAtom* aAtom, Element* Element::Closest(const nsAString& aSelector, ErrorResult& aResult) { return WithSelectorList<Element*>( aSelector, aResult, [&](const RawServoSelectorList* aList) -> Element* { if (!aList) { return nullptr; } return const_cast<Element*>(Servo_SelectorList_Closest(this, aList)); }, [&](nsCSSSelectorList* aList) -> Element* { if (!aList) { // Either we failed (and aError already has the exception), or this nsCSSSelectorList* selectorList = ParseSelectorList(aSelector, aResult); if (!selectorList) { // Either we failed (and aResult already has the exception), or this // is a pseudo-element-only selector that matches nothing. return nullptr; } Loading @@ -3492,14 +3483,12 @@ Element::Closest(const nsAString& aSelector, ErrorResult& aResult) if (node->IsElement() && nsCSSRuleProcessor::SelectorListMatches(node->AsElement(), matchingContext, aList)) { selectorList)) { return node->AsElement(); } } return nullptr; } ); } bool Element::Matches(const nsAString& aSelector, ErrorResult& aError) Loading layout/style/ServoBindingList.h +0 −2 Original line number Diff line number Diff line Loading @@ -136,8 +136,6 @@ SERVO_BINDING_FUNC(Servo_SelectorList_Parse, const nsACString* selector_list) SERVO_BINDING_FUNC(Servo_SelectorList_Matches, bool, RawGeckoElementBorrowed, RawServoSelectorListBorrowed) SERVO_BINDING_FUNC(Servo_SelectorList_Closest, RawGeckoElementBorrowedOrNull, RawGeckoElementBorrowed, RawServoSelectorListBorrowed) SERVO_BINDING_FUNC(Servo_StyleSet_AddSizeOfExcludingThis, void, mozilla::MallocSizeOf malloc_size_of, mozilla::MallocSizeOf malloc_enclosing_size_of, Loading Loading
dom/base/Element.cpp +20 −31 Original line number Diff line number Diff line Loading @@ -3467,18 +3467,9 @@ Element::GetTokenList(nsAtom* aAtom, Element* Element::Closest(const nsAString& aSelector, ErrorResult& aResult) { return WithSelectorList<Element*>( aSelector, aResult, [&](const RawServoSelectorList* aList) -> Element* { if (!aList) { return nullptr; } return const_cast<Element*>(Servo_SelectorList_Closest(this, aList)); }, [&](nsCSSSelectorList* aList) -> Element* { if (!aList) { // Either we failed (and aError already has the exception), or this nsCSSSelectorList* selectorList = ParseSelectorList(aSelector, aResult); if (!selectorList) { // Either we failed (and aResult already has the exception), or this // is a pseudo-element-only selector that matches nothing. return nullptr; } Loading @@ -3492,14 +3483,12 @@ Element::Closest(const nsAString& aSelector, ErrorResult& aResult) if (node->IsElement() && nsCSSRuleProcessor::SelectorListMatches(node->AsElement(), matchingContext, aList)) { selectorList)) { return node->AsElement(); } } return nullptr; } ); } bool Element::Matches(const nsAString& aSelector, ErrorResult& aError) Loading
layout/style/ServoBindingList.h +0 −2 Original line number Diff line number Diff line Loading @@ -136,8 +136,6 @@ SERVO_BINDING_FUNC(Servo_SelectorList_Parse, const nsACString* selector_list) SERVO_BINDING_FUNC(Servo_SelectorList_Matches, bool, RawGeckoElementBorrowed, RawServoSelectorListBorrowed) SERVO_BINDING_FUNC(Servo_SelectorList_Closest, RawGeckoElementBorrowedOrNull, RawGeckoElementBorrowed, RawServoSelectorListBorrowed) SERVO_BINDING_FUNC(Servo_StyleSet_AddSizeOfExcludingThis, void, mozilla::MallocSizeOf malloc_size_of, mozilla::MallocSizeOf malloc_enclosing_size_of, Loading