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

Unified Diff: chrome_linux/resources/inspector/ElementsPanel.js

Issue 14690006: Update reference builds to r197396. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome_linux/resources/inspector/ElementsPanel.js
===================================================================
--- chrome_linux/resources/inspector/ElementsPanel.js (revision 197568)
+++ chrome_linux/resources/inspector/ElementsPanel.js (working copy)
@@ -1357,8 +1357,8 @@
WebInspector.StylesSidebarPane.createExclamationMark = function(propertyName)
{
-var exclamationElement = document.createElement("img");
-exclamationElement.className = "exclamation-mark";
+var exclamationElement = document.createElement("div");
+exclamationElement.className = "exclamation-mark warning-icon-small";
exclamationElement.title = WebInspector.CSSMetadata.cssPropertiesMetainfo.keySet()[propertyName.toLowerCase()] ? WebInspector.UIString("Invalid property value.") : WebInspector.UIString("Unknown property name.");
return exclamationElement;
}
@@ -2284,7 +2284,7 @@
}
-var shorthandProperty = new WebInspector.CSSProperty(style, style.allProperties.length, shorthand, style.shorthandValue(shorthand), "", "style", true, true, undefined);
+var shorthandProperty = new WebInspector.CSSProperty(style, style.allProperties.length, shorthand, style.shorthandValue(shorthand), "", "style", true, true);
var overloaded = property.inactive || this.isPropertyOverloaded(property.name, true);
var item = new WebInspector.StylePropertyTreeElement(this._parentPane, this.styleRule, style, shorthandProperty, true, false, overloaded);
this.propertiesTreeOutline.appendChild(item);
@@ -2403,15 +2403,11 @@
return document.createTextNode(WebInspector.UIString("user stylesheet"));
if (this.rule.isViaInspector) {
var element = document.createElement("span");
-
-function callback(resource)
-{
+var resource = WebInspector.cssModel.viaInspectorResourceForRule(this.rule);
if (resource)
element.appendChild(linkifyUncopyable(resource.url, this.rule.sourceLine));
else
element.textContent = WebInspector.UIString("via inspector");
-}
-WebInspector.cssModel.getViaInspectorResourceForRule(this.rule, callback.bind(this));
return element;
}
},
@@ -2812,7 +2808,10 @@
if (index < 1)
return this.property.name;
-return text.substring(0, index).trim();
+text = text.substring(0, index).trim();
+if (text.startsWith("/*"))
+text = text.substring(2).trim();
+return text;
},
get priority()
@@ -2933,8 +2932,7 @@
function spectrumChanged(e)
{
-color = e.data;
-var colorString = color.toString();
+var colorString = (e.data);
spectrum.displayText = colorString;
colorValueElement.textContent = colorString;
colorSwatch.setColorString(colorString);
« no previous file with comments | « chrome_linux/resources/inspector/CodeMirrorTextEditor.js ('k') | chrome_linux/resources/inspector/Images/addIcon.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698