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

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

Issue 11819025: Merge 138022 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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 | « 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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 curSection = curSection.previousSibling; 978 curSection = curSection.previousSibling;
979 } 979 }
980 980
981 return (curSection && curSection.editable) ? curSection : null; 981 return (curSection && curSection.editable) ? curSection : null;
982 }, 982 },
983 983
984 update: function(full) 984 update: function(full)
985 { 985 {
986 if (this.styleRule.selectorText) 986 if (this.styleRule.selectorText)
987 this._selectorElement.textContent = this.styleRule.selectorText; 987 this._selectorElement.textContent = this.styleRule.selectorText;
988 this._markSelectorMatches();
988 if (full) { 989 if (full) {
989 this.propertiesTreeOutline.removeChildren(); 990 this.propertiesTreeOutline.removeChildren();
990 this.populated = false; 991 this.populated = false;
991 } else { 992 } else {
992 var child = this.propertiesTreeOutline.children[0]; 993 var child = this.propertiesTreeOutline.children[0];
993 while (child) { 994 while (child) {
994 child.overloaded = this.isPropertyOverloaded(child.name, child.i sShorthand); 995 child.overloaded = this.isPropertyOverloaded(child.name, child.i sShorthand);
995 child = child.traverseNextTreeElement(false, null, true); 996 child = child.traverseNextTreeElement(false, null, true);
996 } 997 }
997 } 998 }
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 if (!prefix && !force) 2577 if (!prefix && !force)
2577 return; 2578 return;
2578 2579
2579 var results = this._cssCompletions.startsWith(prefix); 2580 var results = this._cssCompletions.startsWith(prefix);
2580 var selectedIndex = this._cssCompletions.mostUsedOf(results); 2581 var selectedIndex = this._cssCompletions.mostUsedOf(results);
2581 completionsReadyCallback(results, selectedIndex); 2582 completionsReadyCallback(results, selectedIndex);
2582 }, 2583 },
2583 2584
2584 __proto__: WebInspector.TextPrompt.prototype 2585 __proto__: WebInspector.TextPrompt.prototype
2585 } 2586 }
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