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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 1739183002: DevTools: [CSSP] do not wrap computed properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline test Created 4 years, 10 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: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
index 9aab9a7af2baada11ac0f46ee94050c7ade43c06..bc6dced1d55d1d9d246bb35f5cb028dbcd906e03 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -167,9 +167,11 @@ WebInspector.ComputedStyleWidget.prototype = {
colon.textContent = ":";
propertyNameElement.appendChild(colon);
- var propertyValueElement = renderer.renderValue();
- propertyValueElement.classList.add("property-value");
- propertyElement.appendChild(propertyValueElement);
+ var propertyValueElement = propertyElement.createChild("span", "property-value");
+
+ var propertyValueText = renderer.renderValue();
+ propertyValueText.classList.add("property-value-text");
+ propertyValueElement.appendChild(propertyValueText);
var semicolon = createElementWithClass("span", "delimeter");
semicolon.textContent = ";";

Powered by Google App Engine
This is Rietveld 408576698