Bug 1364412: Expose pseudo-element flags, and properly reject pseudos in non-UA sheets. r=bholley
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 15 May 2017 16:19:24 +0200
changeset 578513 d05ac6d7ae31bfb200236cd8b28d9a5de3146caa
parent 578512 ff24d99588629f9b2696035bd8d56c0bf16685fe
child 578514 651b63732c13c34e010fec82e1e296db5e3cfbde
push id58943
push userbmo:emilio+bugs@crisal.io
push dateTue, 16 May 2017 04:34:19 +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