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

Unified Diff: Source/WebCore/inspector/front-end/StylesSidebarPane.js

Issue 9242032: Merge 105070 - Web Inspector: styles sidebar rendering is broken (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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 | « Source/WebCore/ChangeLog ('k') | Source/WebCore/inspector/front-end/elementsPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/StylesSidebarPane.js
===================================================================
--- Source/WebCore/inspector/front-end/StylesSidebarPane.js (revision 105209)
+++ Source/WebCore/inspector/front-end/StylesSidebarPane.js (working copy)
@@ -872,16 +872,16 @@
break;
}
- var mediaTextElement = mediaDataElement.createChild("span");
- mediaTextElement.textContent = mediaText;
- mediaTextElement.title = media.text;
-
if (media.sourceURL) {
var refElement = mediaDataElement.createChild("div", "subtitle");
var anchor = WebInspector.linkifyResourceAsNode(media.sourceURL, media.sourceLine < 0 ? undefined : media.sourceLine, "subtitle");
anchor.style.float = "right";
refElement.appendChild(anchor);
}
+
+ var mediaTextElement = mediaDataElement.createChild("span");
+ mediaTextElement.textContent = mediaText;
+ mediaTextElement.title = media.text;
}
}
@@ -919,7 +919,7 @@
this._selectorRefElement = document.createElement("div");
this._selectorRefElement.className = "subtitle";
this._selectorRefElement.appendChild(this._createRuleOriginNode());
- selectorContainer.appendChild(this._selectorRefElement);
+ selectorContainer.insertBefore(this._selectorRefElement, selectorContainer.firstChild);
this.titleElement.appendChild(selectorContainer);
if (isInherited)
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/inspector/front-end/elementsPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698