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

Side by Side Diff: Source/WebCore/inspector/front-end/StylesSidebarPane.js

Issue 6893091: Merge 84909 - 2011-04-26 Pavel Feldman <pfeldman@google.com> Web Inspector: New Style is... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 8 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
« no previous file with comments | « Source/WebCore/inspector/front-end/DOMAgent.js ('k') | 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 491
492 for (var pseudoId in this.sections) { 492 for (var pseudoId in this.sections) {
493 var sections = this.sections[pseudoId]; 493 var sections = this.sections[pseudoId];
494 for (var i = 0; i < sections.length; ++i) 494 for (var i = 0; i < sections.length; ++i)
495 sections[i].update(true); 495 sections[i].update(true);
496 } 496 }
497 }, 497 },
498 498
499 _createNewRule: function(event) 499 _createNewRule: function(event)
500 { 500 {
501 this.expanded = true;
501 this.addBlankSection().startEditingSelector(); 502 this.addBlankSection().startEditingSelector();
502 }, 503 },
503 504
504 addBlankSection: function() 505 addBlankSection: function()
505 { 506 {
506 var blankSection = new WebInspector.BlankStylePropertiesSection(this, th is.node ? this.node.appropriateSelectorFor(true) : ""); 507 var blankSection = new WebInspector.BlankStylePropertiesSection(this, th is.node ? this.node.appropriateSelectorFor(true) : "");
507 blankSection.pane = this; 508 blankSection.pane = this;
508 509
509 var elementStyleSection = this.sections[0][1]; 510 var elementStyleSection = this.sections[0][1];
510 this.bodyElement.insertBefore(blankSection.element, elementStyleSection. element.nextSibling); 511 this.bodyElement.insertBefore(blankSection.element, elementStyleSection. element.nextSibling);
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 return completionsReadyCallback(results); 2026 return completionsReadyCallback(results);
2026 } 2027 }
2027 2028
2028 results = this._cssCompletions.startsWith(prefix); 2029 results = this._cssCompletions.startsWith(prefix);
2029 if (results) 2030 if (results)
2030 completionsReadyCallback(results); 2031 completionsReadyCallback(results);
2031 } 2032 }
2032 } 2033 }
2033 2034
2034 WebInspector.StylesSidebarPane.CSSPropertyPrompt.prototype.__proto__ = WebInspec tor.TextPrompt.prototype; 2035 WebInspector.StylesSidebarPane.CSSPropertyPrompt.prototype.__proto__ = WebInspec tor.TextPrompt.prototype;
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/DOMAgent.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698