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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 if (newContent) 1746 if (newContent)
1747 newContent = newContent.trim(); 1747 newContent = newContent.trim();
1748 this._parentPane._userOperation = true; 1748 this._parentPane._userOperation = true;
1749 1749
1750 var cssModel = this._parentPane.cssModel(); 1750 var cssModel = this._parentPane.cssModel();
1751 var ruleText = this._rulePrefix() + newContent + " {}"; 1751 var ruleText = this._rulePrefix() + newContent + " {}";
1752 cssModel.addRule(this._styleSheetId, ruleText, this._ruleLocation) 1752 cssModel.addRule(this._styleSheetId, ruleText, this._ruleLocation)
1753 .then(onRuleAdded.bind(this)); 1753 .then(onRuleAdded.bind(this));
1754 }, 1754 },
1755 1755
1756 /**
1757 * @override
1758 */
1756 editingSelectorCancelled: function() 1759 editingSelectorCancelled: function()
1757 { 1760 {
1758 delete this._parentPane._userOperation; 1761 delete this._parentPane._userOperation;
1759 if (!this.isBlank) { 1762 if (!this.isBlank) {
1760 WebInspector.StylePropertiesSection.prototype.editingSelectorCancell ed.call(this); 1763 WebInspector.StylePropertiesSection.prototype.editingSelectorCancell ed.call(this);
1761 return; 1764 return;
1762 } 1765 }
1763 1766
1764 this._editingSelectorEnded(); 1767 this._editingSelectorEnded();
1765 this._parentPane.removeSection(this); 1768 this._parentPane.removeSection(this);
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
3188 3191
3189 /** 3192 /**
3190 * @override 3193 * @override
3191 * @return {!WebInspector.ToolbarItem} 3194 * @return {!WebInspector.ToolbarItem}
3192 */ 3195 */
3193 item: function() 3196 item: function()
3194 { 3197 {
3195 return this._button; 3198 return this._button;
3196 } 3199 }
3197 }; 3200 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698