Bug 1519716 - Add pseudoElement state to the Rule state. r=rcaliman
authorGabriel Luong <gabriel.luong@gmail.com>
Mon, 14 Jan 2019 12:18:53 -0500
changeset 510877 1abbb5d43328bff63871664e4caac4563ed4c0c6
parent 510876 a70165566e3b178a252aae5046fbb48540c90dda
child 510878 b8baa741549c323261ff1dbfadcdf48c228acc80
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrcaliman
bugs1519716
milestone66.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 1519716 - Add pseudoElement state to the Rule state. r=rcaliman
devtools/client/inspector/rules/reducers/rules.js
devtools/client/inspector/rules/types.js
--- a/devtools/client/inspector/rules/reducers/rules.js
+++ b/devtools/client/inspector/rules/reducers/rules.js
@@ -61,16 +61,18 @@ function getRuleState(rule) {
     // An object containing information about the CSS rule's inheritance.
     inheritance: rule.inheritance,
     // Whether or not the rule does not match the current selected element.
     isUnmatched: rule.isUnmatched,
     // Whether or not the rule is an user agent style.
     isUserAgentStyle: rule.isSystem,
     // An object containing information about the CSS keyframes rules.
     keyframesRule: rule.keyframesRule,
+    // The pseudo-element keyword used in the rule.
+    pseudoElement: rule.pseudoElement,
     // An object containing information about the CSS rule's selector.
     selector: rule.selector,
     // An object containing information about the CSS rule's stylesheet source.
     sourceLink: rule.sourceLink,
     // The CSS rule type.
     type: rule.domRule.type,
   };
 }
--- a/devtools/client/inspector/rules/types.js
+++ b/devtools/client/inspector/rules/types.js
@@ -98,16 +98,19 @@ exports.rule = {
   // An object containing information about the CSS keyframes rules.
   keyframesRule: PropTypes.shape({
     // The actor ID of the keyframes rule.
     id: PropTypes.string,
     // The keyframes rule name.
     keyframesName: PropTypes.string,
   }),
 
+  // The pseudo-element keyword used in the rule.
+  pseudoElement: PropTypes.string,
+
   // An object containing information about the CSS rule's selector.
   selector: PropTypes.shape(selector),
 
   // An object containing information about the CSS rule's stylesheet source.
   sourceLink: PropTypes.shape(sourceLink),
 
   // The CSS rule type.
   type: PropTypes.number,