From 25d88bda726627bc81119e909d7d5f1f69ab12a9 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Mon, 2 May 2016 14:24:38 +1000 Subject: [PATCH] Bug 1268749 part 3 - Hide :fullscreen pseudo-class from content when unprefixed API is disabled. r=heycam MozReview-Commit-ID: 78hlOGCDKn0 --HG-- extra : rebase_source : 3fbdf8fcde0064316b821d1ffde98e9e3f8185a1 --- layout/style/nsCSSPseudoClassList.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/style/nsCSSPseudoClassList.h b/layout/style/nsCSSPseudoClassList.h index 61235f12ec46..6e7070691723 100644 --- a/layout/style/nsCSSPseudoClassList.h +++ b/layout/style/nsCSSPseudoClassList.h @@ -161,7 +161,10 @@ CSS_STATE_PSEUDO_CLASS(mozDevtoolsHighlighted, ":-moz-devtools-highlighted", 0, // Matches the element which is being displayed full-screen, and // any containing frames. -CSS_STATE_PSEUDO_CLASS(fullscreen, ":fullscreen", 0, "", NS_EVENT_STATE_FULL_SCREEN) +CSS_STATE_PSEUDO_CLASS(fullscreen, ":fullscreen", + CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME, + "full-screen-api.unprefix.enabled", + NS_EVENT_STATE_FULL_SCREEN) CSS_STATE_PSEUDO_CLASS(mozFullScreen, ":-moz-full-screen", 0, "", NS_EVENT_STATE_FULL_SCREEN) // Matches any element which is an ancestor of the DOM full-screen element,