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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 756913002: DevTools: Rename WI.Color's toString(format) -> asString(format) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index 8610da1fd4336127e4f94cdce0b5a2b454be33da..376818ad8a8b2badc6a35e264eeececb35cee354 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -2749,7 +2749,7 @@ WebInspector.StylePropertyTreeElementBase.prototype = {
var visible = spectrumHelper.toggle(colorSwatch.element, color, format);
if (visible) {
- spectrum.displayText = color.toString(format);
+ spectrum.displayText = color.asString(format);
this.originalPropertyText = this.property.propertyText;
this.editablePane()._isEditingStyle = true;
spectrum.addEventListener(WebInspector.Spectrum.Events.ColorChanged, boundSpectrumChanged);
@@ -2767,7 +2767,7 @@ WebInspector.StylePropertyTreeElementBase.prototype = {
if (format === WebInspector.Color.Format.Original)
colorValueElement.textContent = text;
else
- colorValueElement.textContent = color.toString(format);
+ colorValueElement.textContent = color.asString(format);
/**
* @param {string} curFormat
@@ -2822,7 +2822,7 @@ WebInspector.StylePropertyTreeElementBase.prototype = {
{
do {
format = nextFormat(format);
- var currentValue = color.toString(format);
+ var currentValue = color.asString(format);
} while (currentValue === colorValueElement.textContent);
colorValueElement.textContent = currentValue;
}
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/screencast/ScreencastView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698