Bug 1381690 - Have check_allowed_in read gPropertyEabled table directly. r?Manishearth draft
authorXidorn Quan <me@upsuper.org>
Tue, 18 Jul 2017 10:11:40 +1000
changeset 617992 26699c4bf6e8a90567102654b58529a269ccf6b5
parent 617991 7092c550cb3830ac7757b914dd3370edd81ead6e
child 639923 df767d41977b71c1975d0ca9c8c8183455c1097a
push id71171
push userxquan@mozilla.com
push dateSat, 29 Jul 2017 02:12:32 +0000
reviewersManishearth
bugs1381690
milestone56.0a1
Bug 1381690 - Have check_allowed_in read gPropertyEabled table directly. r?Manishearth MozReview-Commit-ID: 5pwnEqxqVi6
layout/style/ServoBindings.cpp
layout/style/ServoBindings.h
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -2294,22 +2294,16 @@ Gecko_CSSValue_InitSharedList(nsCSSValue
   list->mHead = new nsCSSValueList;
   nsCSSValueList* cur = list->mHead;
   for (uint32_t i = 1; i < aLen; ++i) {
     cur->mNext = new nsCSSValueList;
     cur = cur->mNext;
   }
 }
 
-bool
-Gecko_PropertyId_IsPrefEnabled(nsCSSPropertyID id)
-{
-  return nsCSSProps::IsEnabled(id);
-}
-
 void
 Gecko_CSSValue_Drop(nsCSSValueBorrowedMut aCSSValue)
 {
   aCSSValue->~nsCSSValue();
 }
 
 void
 Gecko_nsStyleFont_SetLang(nsStyleFont* aFont, nsIAtom* aAtom)
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -560,17 +560,16 @@ void Gecko_CSSValue_SetURL(nsCSSValueBor
 void Gecko_CSSValue_SetInt(nsCSSValueBorrowedMut css_value, int32_t integer, nsCSSUnit unit);
 void Gecko_CSSValue_SetPair(nsCSSValueBorrowedMut css_value,
                             nsCSSValueBorrowed xvalue, nsCSSValueBorrowed yvalue);
 void Gecko_CSSValue_SetList(nsCSSValueBorrowedMut css_value, uint32_t len);
 void Gecko_CSSValue_SetPairList(nsCSSValueBorrowedMut css_value, uint32_t len);
 void Gecko_CSSValue_InitSharedList(nsCSSValueBorrowedMut css_value, uint32_t len);
 void Gecko_CSSValue_Drop(nsCSSValueBorrowedMut css_value);
 NS_DECL_THREADSAFE_FFI_REFCOUNTING(nsCSSValueSharedList, CSSValueSharedList);
-bool Gecko_PropertyId_IsPrefEnabled(nsCSSPropertyID id);
 
 void Gecko_nsStyleFont_SetLang(nsStyleFont* font, nsIAtom* atom);
 void Gecko_nsStyleFont_CopyLangFrom(nsStyleFont* aFont, const nsStyleFont* aSource);
 void Gecko_nsStyleFont_FixupNoneGeneric(nsStyleFont* font,
                                         RawGeckoPresContextBorrowed pres_context);
 void Gecko_nsStyleFont_PrefillDefaultForGeneric(nsStyleFont* font,
                                                 RawGeckoPresContextBorrowed pres_context,
                                                 uint8_t generic_id);