diff --git a/layout/style/ServoBindings.cpp b/layout/style/ServoBindings.cpp index b505f5baaddb..1dc9a9f5bd71 100644 --- a/layout/style/ServoBindings.cpp +++ b/layout/style/ServoBindings.cpp @@ -247,6 +247,12 @@ Gecko_ElementState(RawGeckoElementBorrowed aElement) return aElement->StyleState().ServoValue(); } +EventStates::ServoType +Gecko_DocumentState(const nsIDocument* aDocument) +{ + return aDocument->ThreadSafeGetDocumentState().ServoValue(); +} + bool Gecko_IsTextNode(RawGeckoNodeBorrowed aNode) { @@ -819,7 +825,7 @@ Gecko_GetXMLLangValue(RawGeckoElementBorrowed aElement) } nsIDocument::DocumentTheme -Gecko_GetDocumentLWTheme(const nsIDocument *aDocument) +Gecko_GetDocumentLWTheme(const nsIDocument* aDocument) { return aDocument->ThreadSafeGetDocumentLWTheme(); } diff --git a/layout/style/ServoBindings.h b/layout/style/ServoBindings.h index d3eaab99d9ec..387e0e2d7fd6 100644 --- a/layout/style/ServoBindings.h +++ b/layout/style/ServoBindings.h @@ -154,6 +154,7 @@ void Gecko_LoadStyleSheet(mozilla::css::Loader* loader, // Selector Matching. uint64_t Gecko_ElementState(RawGeckoElementBorrowed element); +uint64_t Gecko_DocumentState(const nsIDocument* aDocument); bool Gecko_IsTextNode(RawGeckoNodeBorrowed node); bool Gecko_IsRootElement(RawGeckoElementBorrowed element); bool Gecko_MatchesElement(mozilla::CSSPseudoClassType type, RawGeckoElementBorrowed element); @@ -164,7 +165,7 @@ bool Gecko_MatchLang(RawGeckoElementBorrowed element, nsIAtom* override_lang, bool has_override_lang, const char16_t* value); nsIAtom* Gecko_GetXMLLangValue(RawGeckoElementBorrowed element); -nsIDocument::DocumentTheme Gecko_GetDocumentLWTheme(const nsIDocument *aDocument); +nsIDocument::DocumentTheme Gecko_GetDocumentLWTheme(const nsIDocument* aDocument); // Attributes. #define SERVO_DECLARE_ELEMENT_ATTR_MATCHING_FUNCTIONS(prefix_, implementor_) \ diff --git a/layout/style/test/stylo-failures.md b/layout/style/test/stylo-failures.md index c31eea1c3d47..d625bc527215 100644 --- a/layout/style/test/stylo-failures.md +++ b/layout/style/test/stylo-failures.md @@ -78,9 +78,6 @@ to mochitest command. * Unsupported pseudo-elements or anon boxes * :-moz-tree bits bug 1348488 * test_selectors.html `:-moz-tree` [10] -* Unsupported pseudo-classes - * :-moz-window-inactive bug 1348489 - * test_selectors.html `:-moz-window-inactive` [2] * Unit should be preserved after parsing servo/servo#15346 * test_units_time.html [1] * getComputedStyle style doesn't contain custom properties bug 1336891