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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 node.removeUserProperty(WebInspector.ElementsTreeOutline.PseudoS
tateDecorator.PropertyName); | 226 node.removeUserProperty(WebInspector.ElementsTreeOutline.PseudoS
tateDecorator.PropertyName); |
227 } | 227 } |
228 | 228 |
229 this.treeOutline.updateOpenCloseTags(node); | 229 this.treeOutline.updateOpenCloseTags(node); |
230 WebInspector.cssModel.forcePseudoState(node.id, node.getUserProperty(Web
Inspector.ElementsTreeOutline.PseudoStateDecorator.PropertyName)); | 230 WebInspector.cssModel.forcePseudoState(node.id, node.getUserProperty(Web
Inspector.ElementsTreeOutline.PseudoStateDecorator.PropertyName)); |
231 this._metricsPaneEdited(); | 231 this._metricsPaneEdited(); |
232 this._stylesPaneEdited(); | 232 this._stylesPaneEdited(); |
233 | 233 |
234 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet
rics.UserAction, { | 234 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet
rics.UserAction, { |
235 action: WebInspector.UserMetrics.UserActionNames.ForcedElementState, | 235 action: WebInspector.UserMetrics.UserActionNames.ForcedElementState, |
236 selector: node.appropriateSelectorFor(false), | 236 selector: WebInspector.DOMPresentationUtils.appropriateSelectorFor(n
ode, false), |
237 enabled: enable, | 237 enabled: enable, |
238 state: pseudoClass | 238 state: pseudoClass |
239 }); | 239 }); |
240 }, | 240 }, |
241 | 241 |
242 _selectedNodeChanged: function() | 242 _selectedNodeChanged: function() |
243 { | 243 { |
244 var selectedNode = this.selectedDOMNode(); | 244 var selectedNode = this.selectedDOMNode(); |
245 if (!selectedNode && this._lastValidSelectedNode) | 245 if (!selectedNode && this._lastValidSelectedNode) |
246 this._selectedPathOnReset = this._lastValidSelectedNode.path(); | 246 this._selectedPathOnReset = this._lastValidSelectedNode.path(); |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 * @param {WebInspector.SidebarPane} pane | 1293 * @param {WebInspector.SidebarPane} pane |
1294 */ | 1294 */ |
1295 addExtensionSidebarPane: function(id, pane) | 1295 addExtensionSidebarPane: function(id, pane) |
1296 { | 1296 { |
1297 this._extensionSidebarPanes.push(pane); | 1297 this._extensionSidebarPanes.push(pane); |
1298 this._extensionSidebarPanesContainer.addPane(pane); | 1298 this._extensionSidebarPanesContainer.addPane(pane); |
1299 }, | 1299 }, |
1300 | 1300 |
1301 __proto__: WebInspector.Panel.prototype | 1301 __proto__: WebInspector.Panel.prototype |
1302 } | 1302 } |
OLD | NEW |