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

Side by Side Diff: Source/devtools/front_end/StylesSidebarPane.js

Issue 23692002: DevTools: Dump function location when printing it in console and support inspect() for functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/ScriptsPanel.js ('k') | Source/devtools/front_end/inspector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 /** 2276 /**
2277 * @param {Element} element 2277 * @param {Element} element
2278 */ 2278 */
2279 _navigateToSource: function(element) 2279 _navigateToSource: function(element)
2280 { 2280 {
2281 console.assert(this.section().navigable); 2281 console.assert(this.section().navigable);
2282 var propertyNameClicked = element === this.nameElement; 2282 var propertyNameClicked = element === this.nameElement;
2283 var uiLocation = this.property.uiLocation(propertyNameClicked); 2283 var uiLocation = this.property.uiLocation(propertyNameClicked);
2284 if (!uiLocation) 2284 if (!uiLocation)
2285 return; 2285 return;
2286 WebInspector.showPanel("scripts").showUISourceCode(uiLocation.uiSourceCo de, uiLocation.lineNumber, uiLocation.columnNumber); 2286 WebInspector.showPanel("scripts").showUILocation(uiLocation);
2287 }, 2287 },
2288 2288
2289 _isNameElement: function(element) 2289 _isNameElement: function(element)
2290 { 2290 {
2291 return element.enclosingNodeOrSelfWithClass("webkit-css-property") === t his.nameElement; 2291 return element.enclosingNodeOrSelfWithClass("webkit-css-property") === t his.nameElement;
2292 }, 2292 },
2293 2293
2294 _isValueElement: function(element) 2294 _isValueElement: function(element)
2295 { 2295 {
2296 return !!element.enclosingNodeOrSelfWithClass("value"); 2296 return !!element.enclosingNodeOrSelfWithClass("value");
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 return; 2868 return;
2869 } 2869 }
2870 2870
2871 var results = this._cssCompletions.startsWith(prefix); 2871 var results = this._cssCompletions.startsWith(prefix);
2872 var selectedIndex = this._cssCompletions.mostUsedOf(results); 2872 var selectedIndex = this._cssCompletions.mostUsedOf(results);
2873 completionsReadyCallback(results, selectedIndex); 2873 completionsReadyCallback(results, selectedIndex);
2874 }, 2874 },
2875 2875
2876 __proto__: WebInspector.TextPrompt.prototype 2876 __proto__: WebInspector.TextPrompt.prototype
2877 } 2877 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScriptsPanel.js ('k') | Source/devtools/front_end/inspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698