| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |