Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 1902993002: [DevTools] Introduce provisional blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 WebInspector.StylesSidebarPane.prototype = { 108 WebInspector.StylesSidebarPane.prototype = {
109 /** 109 /**
110 * @param {!WebInspector.Event} event 110 * @param {!WebInspector.Event} event
111 */ 111 */
112 _onLayoutEditorChange: function(event) 112 _onLayoutEditorChange: function(event)
113 { 113 {
114 var cssModel = /** @type {!WebInspector.CSSModel} */(event.target); 114 var cssModel = /** @type {!WebInspector.CSSModel} */(event.target);
115 var styleSheetId = event.data["id"]; 115 var styleSheetId = event.data["id"];
116 var sourceRange = /** @type {!CSSAgent.SourceRange} */(event.data["range "]); 116 var sourceRange = /** @type {!RuntimeAgent.SourceRange} */(event.data["r ange"]);
117 var range = WebInspector.TextRange.fromObject(sourceRange); 117 var range = WebInspector.TextRange.fromObject(sourceRange);
118 this._decorator = new WebInspector.PropertyChangeHighlighter(this, cssMo del, styleSheetId, range); 118 this._decorator = new WebInspector.PropertyChangeHighlighter(this, cssMo del, styleSheetId, range);
119 this.update(); 119 this.update();
120 }, 120 },
121 121
122 /** 122 /**
123 * @param {!WebInspector.CSSProperty} cssProperty 123 * @param {!WebInspector.CSSProperty} cssProperty
124 */ 124 */
125 revealProperty: function(cssProperty) 125 revealProperty: function(cssProperty)
126 { 126 {
(...skipping 2963 matching lines...) Expand 10 before | Expand all | Expand 10 after
3090 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha nged); 3090 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha nged);
3091 onNodeChanged(); 3091 onNodeChanged();
3092 return button; 3092 return button;
3093 3093
3094 function onNodeChanged() 3094 function onNodeChanged()
3095 { 3095 {
3096 var node = WebInspector.context.flavor(WebInspector.DOMNode); 3096 var node = WebInspector.context.flavor(WebInspector.DOMNode);
3097 button.setEnabled(!!node); 3097 button.setEnabled(!!node);
3098 } 3098 }
3099 } 3099 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698