Bug 1416106 - Part 3: Implement compositor warning. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Wed, 14 Feb 2018 23:18:11 +0900
changeset 755228 d14a15e93974e028c9dbcb21bb5f3eaffa300a6f
parent 755227 40f2f200b7fa46ec0d3706ff0ed1b3665342ba28
child 755229 ceae374abb766b879bdb2e5a1ff51bdb63aaed21
push id99127
push userbmo:dakatsuka@mozilla.com
push dateThu, 15 Feb 2018 00:47:03 +0000
reviewersgl
bugs1416106
milestone60.0a1
Bug 1416106 - Part 3: Implement compositor warning. r?gl MozReview-Commit-ID: 18qQ1FydML4
devtools/client/inspector/animation/components/AnimatedPropertyName.js
devtools/client/themes/animation.css
--- a/devtools/client/inspector/animation/components/AnimatedPropertyName.js
+++ b/devtools/client/inspector/animation/components/AnimatedPropertyName.js
@@ -20,17 +20,19 @@ class AnimatedPropertyName extends PureC
     const {
       property,
       state,
     } = this.props;
 
     return dom.div(
       {
         className: "animated-property-name" +
-                   (state && state.runningOnCompositor ? " compositor" : ""),
+                   (state && state.runningOnCompositor ? " compositor" : "") +
+                   (state && state.warning ? " warning" : ""),
+        title: state ? state.warning : "",
       },
       dom.span(
         {},
         property
       )
     );
   }
 }
--- a/devtools/client/themes/animation.css
+++ b/devtools/client/themes/animation.css
@@ -347,16 +347,20 @@
   fill: var(--fast-track-color);
   height: 100%;
   position: absolute;
   left: 0;
   width: 15px;
   -moz-context-properties: fill;
 }
 
+.animated-property-name.warning span {
+  text-decoration: underline dotted;
+}
+
 /* No Animation Panel */
 .animation-error-message {
   overflow: auto;
 }
 
 .animation-error-message > p {
   white-space: pre;
 }