OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator} | 1225 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator} |
1226 */ | 1226 */ |
1227 WebInspector.ElementsPanel.PseudoStateMarkerDecorator = function() | 1227 WebInspector.ElementsPanel.PseudoStateMarkerDecorator = function() |
1228 { | 1228 { |
1229 } | 1229 } |
1230 | 1230 |
1231 WebInspector.ElementsPanel.PseudoStateMarkerDecorator.prototype = { | 1231 WebInspector.ElementsPanel.PseudoStateMarkerDecorator.prototype = { |
1232 /** | 1232 /** |
1233 * @override | 1233 * @override |
1234 * @param {!WebInspector.DOMNode} node | 1234 * @param {!WebInspector.DOMNode} node |
1235 * @return {?string} | 1235 * @return {?{title: string, color: string}} |
1236 */ | 1236 */ |
1237 decorate: function(node) | 1237 decorate: function(node) |
1238 { | 1238 { |
1239 return WebInspector.UIString("Element state: %s", ":" + WebInspector.CSS
StyleModel.fromNode(node).pseudoState(node).join(", :")); | 1239 return { color: "orange", title: WebInspector.UIString("Element state: %
s", ":" + WebInspector.CSSStyleModel.fromNode(node).pseudoState(node).join(", :"
)) }; |
1240 } | 1240 } |
1241 } | 1241 } |
1242 | 1242 |
1243 /** | 1243 /** |
1244 * @constructor | 1244 * @constructor |
1245 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator} | 1245 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator} |
1246 */ | 1246 */ |
1247 WebInspector.ElementsPanel.HiddenMarkerDecorator = function() | 1247 WebInspector.ElementsPanel.HiddenMarkerDecorator = function() |
1248 { | 1248 { |
1249 } | 1249 } |
1250 | 1250 |
1251 WebInspector.ElementsPanel.HiddenMarkerDecorator.prototype = { | 1251 WebInspector.ElementsPanel.HiddenMarkerDecorator.prototype = { |
1252 /** | 1252 /** |
1253 * @override | 1253 * @override |
1254 * @param {!WebInspector.DOMNode} node | 1254 * @param {!WebInspector.DOMNode} node |
1255 * @return {?string} | 1255 * @return {?{title: string, color: string}} |
1256 */ | 1256 */ |
1257 decorate: function(node) | 1257 decorate: function(node) |
1258 { | 1258 { |
1259 return WebInspector.UIString("Element is hidden"); | 1259 return { color: "#555", title: WebInspector.UIString("Element is hidden"
) }; |
1260 } | 1260 } |
1261 } | 1261 } |
OLD | NEW |