Bug 1364412: Expose pseudo-element flags, and properly reject pseudos in non-UA sheets. r?bholley draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 15 May 2017 16:19:24 +0200
changeset 578210 a3667a277065a1bfcedf257828c9a99d92795f13
parent 578209 6a37d9691c2a70edcdb1ecaf15399136104411db
child 578211 4a444ef34e83ab9d72e5a40b0c42c277ee0d2f46
push id58929
push userbmo:emilio+bugs@crisal.io
push dateTue, 16 May 2017 02:57:42 +0000
reviewersbholley
bugs1364412
milestone55.0a1
Bug 1364412: Expose pseudo-element flags, and properly reject pseudos in non-UA sheets. r?bholley MozReview-Commit-ID: KYC1ywfI7Lg Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
layout/style/ServoBindings.h
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -550,15 +550,21 @@ void Gecko_UnregisterProfilerThread();
 
 bool Gecko_DocumentRule_UseForPresentation(RawGeckoPresContextBorrowed,
                                            const nsACString* aPattern,
                                            mozilla::css::URLMatchingFunction aURLMatchingFunction);
 
 // Allocator hinting.
 void Gecko_SetJemallocThreadLocalArena(bool enabled);
 
+// Pseudo-element flags.
+#define CSS_PSEUDO_ELEMENT(name_, value_, flags_) \
+  const uint32_t SERVO_CSS_PSEUDO_ELEMENT_FLAGS_##name_ = flags_;
+#include "nsCSSPseudoElementList.h"
+#undef CSS_PSEUDO_ELEMENT
+
 #define SERVO_BINDING_FUNC(name_, return_, ...) return_ name_(__VA_ARGS__);
 #include "mozilla/ServoBindingList.h"
 #undef SERVO_BINDING_FUNC
 
 } // extern "C"
 
 #endif // mozilla_ServoBindings_h