Bug 1396073: Hide :-moz-devtools-highlighted from anywhere but UA sheets. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 27 Sep 2017 16:27:11 +0200
changeset 383459 69d30bc2d04869e2214443e99f62c2986bbc6da8
parent 383458 b45571b600da2bf732775c82ce03fbfaad0e8665
child 383460 736aac6f2c4d705e7d889b9dbd3cac25a37d4e1a
push id32594
push userkwierso@gmail.com
push dateThu, 28 Sep 2017 22:49:33 +0000
treeherdermozilla-central@6dea0ee45b66 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1396073
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1396073: Hide :-moz-devtools-highlighted from anywhere but UA sheets. r=xidorn It's always used from a UA sheet already. MozReview-Commit-ID: J3poQuTD1C7 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
layout/style/nsCSSPseudoClassList.h
--- a/layout/style/nsCSSPseudoClassList.h
+++ b/layout/style/nsCSSPseudoClassList.h
@@ -157,17 +157,18 @@ CSS_STATE_PSEUDO_CLASS(enabled, ":enable
 CSS_STATE_PSEUDO_CLASS(focus, ":focus", 0, "", NS_EVENT_STATE_FOCUS)
 CSS_STATE_PSEUDO_CLASS(focusWithin, ":focus-within", 0, "", NS_EVENT_STATE_FOCUS_WITHIN)
 CSS_STATE_PSEUDO_CLASS(hover, ":hover", 0, "", NS_EVENT_STATE_HOVER)
 CSS_STATE_PSEUDO_CLASS(mozDragOver, ":-moz-drag-over", 0, "", NS_EVENT_STATE_DRAGOVER)
 CSS_STATE_PSEUDO_CLASS(target, ":target", 0, "", NS_EVENT_STATE_URLTARGET)
 CSS_STATE_PSEUDO_CLASS(indeterminate, ":indeterminate", 0, "",
                        NS_EVENT_STATE_INDETERMINATE)
 
-CSS_STATE_PSEUDO_CLASS(mozDevtoolsHighlighted, ":-moz-devtools-highlighted", 0, "",
+CSS_STATE_PSEUDO_CLASS(mozDevtoolsHighlighted, ":-moz-devtools-highlighted",
+                       CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS, "",
                        NS_EVENT_STATE_DEVTOOLS_HIGHLIGHTED)
 CSS_STATE_PSEUDO_CLASS(mozStyleeditorTransitioning, ":-moz-styleeditor-transitioning", 0, "",
                        NS_EVENT_STATE_STYLEEDITOR_TRANSITIONING)
 
 // Matches the element which is being displayed full-screen, and
 // any containing frames.
 CSS_STATE_PSEUDO_CLASS(fullscreen, ":fullscreen",
                        CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME,