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

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

Issue 476893002: DevTools: [SSP] fix Ctrl-Click navigation over selector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698