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

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

Issue 2788513002: DevTools: fix overlap in computed styles widget (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36817d691339160abfc7f9ed0878cece8d7cda4a..c8f3166d6abcf53003961654535d2cbaec24794c 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -279,16 +279,16 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
trace.appendChild(valueElement);
var rule = property.ownerStyle.parentRule;
+ var selectorElement = trace.createChild('span', 'property-trace-selector');
+ selectorElement.textContent = rule ? rule.selectorText() : 'element.style';
+ selectorElement.title = selectorElement.textContent;
+
if (rule) {
var linkSpan = trace.createChild('span', 'trace-link');
linkSpan.appendChild(
Elements.StylePropertiesSection.createRuleOriginNode(matchedStyles, this._linkifier, rule));
}
- var selectorElement = trace.createChild('span', 'property-trace-selector');
- selectorElement.textContent = rule ? rule.selectorText() : 'element.style';
- selectorElement.title = selectorElement.textContent;
-
var traceTreeElement = new UI.TreeElement();
traceTreeElement.title = trace;
traceTreeElement.selectable = false;
« 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