| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 this._treeOutlines[i].setVisibleWidth(width); | 249 this._treeOutlines[i].setVisibleWidth(width); |
| 250 } | 250 } |
| 251 this._breadcrumbs.updateSizes(); | 251 this._breadcrumbs.updateSizes(); |
| 252 }, | 252 }, |
| 253 | 253 |
| 254 /** | 254 /** |
| 255 * @override | 255 * @override |
| 256 */ | 256 */ |
| 257 focus: function() | 257 focus: function() |
| 258 { | 258 { |
| 259 if (this._treeOutlines.length) | 259 if (this._treeOutlines.length) { |
| 260 this._treeOutlines[0].focus(); | 260 this._treeOutlines[0].focus(); |
| 261 this.wasFocused(); |
| 262 } |
| 261 }, | 263 }, |
| 262 | 264 |
| 263 /** | 265 /** |
| 264 * @override | 266 * @override |
| 265 * @return {!WebInspector.SearchableView} | 267 * @return {!WebInspector.SearchableView} |
| 266 */ | 268 */ |
| 267 searchableView: function() | 269 searchableView: function() |
| 268 { | 270 { |
| 269 return this._searchableView; | 271 return this._searchableView; |
| 270 }, | 272 }, |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 /** | 1117 /** |
| 1116 * @override | 1118 * @override |
| 1117 * @param {!WebInspector.DOMNode} node | 1119 * @param {!WebInspector.DOMNode} node |
| 1118 * @return {?{title: string, color: string}} | 1120 * @return {?{title: string, color: string}} |
| 1119 */ | 1121 */ |
| 1120 decorate: function(node) | 1122 decorate: function(node) |
| 1121 { | 1123 { |
| 1122 return { color: "orange", title: WebInspector.UIString("Element state: %
s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; | 1124 return { color: "orange", title: WebInspector.UIString("Element state: %
s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; |
| 1123 } | 1125 } |
| 1124 } | 1126 } |
| OLD | NEW |