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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 }, | 1589 }, |
1590 | 1590 |
1591 _handleSelectorClick: function(event) | 1591 _handleSelectorClick: function(event) |
1592 { | 1592 { |
1593 if (WebInspector.KeyboardShortcut.eventHasCtrlOrMeta(event) && this.navi
gable && event.target.classList.contains("simple-selector")) { | 1593 if (WebInspector.KeyboardShortcut.eventHasCtrlOrMeta(event) && this.navi
gable && event.target.classList.contains("simple-selector")) { |
1594 var index = event.target._selectorIndex; | 1594 var index = event.target._selectorIndex; |
1595 var target = this._parentPane._target; | 1595 var target = this._parentPane._target; |
1596 var rawLocation = new WebInspector.CSSLocation(target, this.rule.sty
leSheetId, this.rule.sourceURL, this.rule.lineNumberInSource(index), this.rule.c
olumnNumberInSource(index)); | 1596 var rawLocation = new WebInspector.CSSLocation(target, this.rule.sty
leSheetId, this.rule.sourceURL, this.rule.lineNumberInSource(index), this.rule.c
olumnNumberInSource(index)); |
1597 var uiLocation = WebInspector.cssWorkspaceBinding.rawLocationToUILoc
ation(rawLocation); | 1597 var uiLocation = WebInspector.cssWorkspaceBinding.rawLocationToUILoc
ation(rawLocation); |
1598 WebInspector.Revealer.reveal(uiLocation); | 1598 WebInspector.Revealer.reveal(uiLocation); |
| 1599 event.consume(true); |
1599 return; | 1600 return; |
1600 } | 1601 } |
1601 this._startEditingOnMouseEvent(); | 1602 this._startEditingOnMouseEvent(); |
1602 event.consume(true); | 1603 event.consume(true); |
1603 }, | 1604 }, |
1604 | 1605 |
1605 _startEditingOnMouseEvent: function() | 1606 _startEditingOnMouseEvent: function() |
1606 { | 1607 { |
1607 if (!this.editable) | 1608 if (!this.editable) |
1608 return; | 1609 return; |
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3358 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { | 3359 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { |
3359 for (var i = 0; i < results.length; ++i) | 3360 for (var i = 0; i < results.length; ++i) |
3360 results[i] = results[i].toUpperCase(); | 3361 results[i] = results[i].toUpperCase(); |
3361 } | 3362 } |
3362 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3363 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
3363 completionsReadyCallback(results, selectedIndex); | 3364 completionsReadyCallback(results, selectedIndex); |
3364 }, | 3365 }, |
3365 | 3366 |
3366 __proto__: WebInspector.TextPrompt.prototype | 3367 __proto__: WebInspector.TextPrompt.prototype |
3367 } | 3368 } |
OLD | NEW |