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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 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
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 } 418 }
419 }, 419 },
420 420
421 /** 421 /**
422 * @param {!WebInspector.StylePropertiesSection} insertAfterSection 422 * @param {!WebInspector.StylePropertiesSection} insertAfterSection
423 * @param {string} styleSheetId 423 * @param {string} styleSheetId
424 * @param {!WebInspector.TextRange} ruleLocation 424 * @param {!WebInspector.TextRange} ruleLocation
425 */ 425 */
426 _addBlankSection: function(insertAfterSection, styleSheetId, ruleLocation) 426 _addBlankSection: function(insertAfterSection, styleSheetId, ruleLocation)
427 { 427 {
428 this.revealWidget(); 428 this.revealView();
429 var node = this.node(); 429 var node = this.node();
430 var blankSection = new WebInspector.BlankStylePropertiesSection(this, in sertAfterSection._matchedStyles, node ? WebInspector.DOMPresentationUtils.simple Selector(node) : "", styleSheetId, ruleLocation, insertAfterSection._style); 430 var blankSection = new WebInspector.BlankStylePropertiesSection(this, in sertAfterSection._matchedStyles, node ? WebInspector.DOMPresentationUtils.simple Selector(node) : "", styleSheetId, ruleLocation, insertAfterSection._style);
431 431
432 this._sectionsContainer.insertBefore(blankSection.element, insertAfterSe ction.element.nextSibling); 432 this._sectionsContainer.insertBefore(blankSection.element, insertAfterSe ction.element.nextSibling);
433 433
434 for (var block of this._sectionBlocks) { 434 for (var block of this._sectionBlocks) {
435 var index = block.sections.indexOf(insertAfterSection); 435 var index = block.sections.indexOf(insertAfterSection);
436 if (index === -1) 436 if (index === -1)
437 continue; 437 continue;
438 block.sections.splice(index + 1, 0, blankSection); 438 block.sections.splice(index + 1, 0, blankSection);
(...skipping 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after
3110 3110
3111 /** 3111 /**
3112 * @override 3112 * @override
3113 * @return {!WebInspector.ToolbarItem} 3113 * @return {!WebInspector.ToolbarItem}
3114 */ 3114 */
3115 item: function() 3115 item: function()
3116 { 3116 {
3117 return this._button; 3117 return this._button;
3118 } 3118 }
3119 } 3119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698