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

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

Issue 1170453002: DevTools: [SSP] fix styling of media query links (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 5 years, 6 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 | « LayoutTests/http/tests/inspector/elements-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a79f85f7d841cad214b08d577fff06984535ff86..28c3da877d3460293b6a8940f7b9abd82217f034 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1158,9 +1158,9 @@ WebInspector.StylePropertiesSection.prototype = {
var media = mediaRules[i];
var mediaDataElement = this._mediaListElement.createChild("div", "media");
if (media.sourceURL) {
- var refElement = mediaDataElement.createChild("div", "subtitle");
var anchor = this._parentPane._linkifier.linkifyMedia(media);
- refElement.appendChild(anchor);
+ anchor.classList.add("subtitle");
+ mediaDataElement.appendChild(anchor);
}
var mediaContainerElement = mediaDataElement.createChild("span");
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698