From e0b864d78736b78fcf26ee150723d6d0439ffd75 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 28 Jun 2017 09:32:26 -0700 Subject: [PATCH] Bug 1367312 - stylo: Implement :-moz-lwtheme* pseudo-classes. https://bugzilla.mozilla.org/show_bug.cgi?id=1367312 --- components/style/gecko/generated/bindings.rs | 6 ++++++ .../style/gecko/non_ts_pseudo_class_list.rs | 4 +++- components/style/gecko/wrapper.rs | 19 ++++++++++++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index e8ec71f6615..e94e1cd96eb 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -11,6 +11,8 @@ use gecko_bindings::structs::mozilla::css::URLValue; use gecko_bindings::structs::mozilla::MallocSizeOf; use gecko_bindings::structs::mozilla::Side; use gecko_bindings::structs::nsIContent; +use gecko_bindings::structs::nsIDocument; +use gecko_bindings::structs::nsIDocument_DocumentTheme; use gecko_bindings::structs::RawGeckoAnimationPropertySegment; use gecko_bindings::structs::RawGeckoComputedTiming; use gecko_bindings::structs::RawGeckoCSSPropertyIDList; @@ -583,6 +585,10 @@ extern "C" { pub fn Gecko_GetXMLLangValue(element: RawGeckoElementBorrowed) -> *mut nsIAtom; } +extern "C" { + pub fn Gecko_GetDocumentLWTheme(aDocument: *const nsIDocument) + -> nsIDocument_DocumentTheme; +} extern "C" { pub fn Gecko_AtomAttrValue(element: RawGeckoElementBorrowed, attribute: *mut nsIAtom) -> *mut nsIAtom; diff --git a/components/style/gecko/non_ts_pseudo_class_list.rs b/components/style/gecko/non_ts_pseudo_class_list.rs index 8beb8c98493..92da05b5b64 100644 --- a/components/style/gecko/non_ts_pseudo_class_list.rs +++ b/components/style/gecko/non_ts_pseudo_class_list.rs @@ -26,7 +26,6 @@ * * Pending pseudo-classes: * - * :-moz-lwtheme, :-moz-lwtheme-brighttext, :-moz-lwtheme-darktext, * :-moz-window-inactive. * * :scope ->