From 0fb016f0f206fce53360b10413bacc74b7cb30b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 15 May 2017 16:19:24 +0200 Subject: [PATCH] Bug 1364412: Expose pseudo-element flags, and properly reject pseudos in non-UA sheets. r=bholley MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MozReview-Commit-ID: KYC1ywfI7Lg Signed-off-by: Emilio Cobos Álvarez --HG-- extra : rebase_source : 924c2fb9b20da5e243faa3ed527c35103b50c742 --- layout/style/ServoBindings.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layout/style/ServoBindings.h b/layout/style/ServoBindings.h index 5185c087272f..b08301bc7568 100644 --- a/layout/style/ServoBindings.h +++ b/layout/style/ServoBindings.h @@ -555,6 +555,12 @@ bool Gecko_DocumentRule_UseForPresentation(RawGeckoPresContextBorrowed, // 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