Title: [108335] trunk/Source/WebCore
Revision
108335
Author
[email protected]
Date
2012-02-21 03:47:55 -0800 (Tue, 21 Feb 2012)

Log Message

Web Inspector: [Styles] Rule source URL tooltip should show line number
https://bugs.webkit.org/show_bug.cgi?id=79087

Reviewed by Pavel Feldman.

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection):
(WebInspector.StylePropertiesSection.prototype._createRuleOriginNode):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108334 => 108335)


--- trunk/Source/WebCore/ChangeLog	2012-02-21 11:46:07 UTC (rev 108334)
+++ trunk/Source/WebCore/ChangeLog	2012-02-21 11:47:55 UTC (rev 108335)
@@ -1,3 +1,14 @@
+2012-02-21  Alexander Pavlov  <[email protected]>
+
+        Web Inspector: [Styles] Rule source URL tooltip should show line number
+        https://bugs.webkit.org/show_bug.cgi?id=79087
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/StylesSidebarPane.js:
+        (WebInspector.StylePropertiesSection):
+        (WebInspector.StylePropertiesSection.prototype._createRuleOriginNode):
+
 2012-02-21  Pavel Feldman  <[email protected]>
 
         Web Inspector: clicking empty space should not re-enter edit mode

Modified: trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js (108334 => 108335)


--- trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-02-21 11:46:07 UTC (rev 108334)
+++ trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-02-21 11:47:55 UTC (rev 108335)
@@ -941,7 +941,8 @@
 
             if (media.sourceURL) {
                 var refElement = mediaDataElement.createChild("div", "subtitle");
-                var anchor = WebInspector.linkifyResourceAsNode(media.sourceURL, media.sourceLine < 0 ? undefined : media.sourceLine, "subtitle");
+                var lineNumber = media.sourceLine < 0 ? undefined : media.sourceLine;
+                var anchor = WebInspector.linkifyResourceAsNode(media.sourceURL, lineNumber, "subtitle", media.sourceURL + (isNaN(lineNumber) ? "" : (":" + (lineNumber + 1))));
                 anchor.style.float = "right";
                 refElement.appendChild(anchor);
             }
@@ -1174,7 +1175,7 @@
     {
         function linkifyUncopyable(url, line)
         {
-            var link = WebInspector.linkifyResourceAsNode(url, line);
+            var link = WebInspector.linkifyResourceAsNode(url, line, "", url + ":" + (line + 1));
             link.classList.add("webkit-html-resource-link");
             link.setAttribute("data-uncopyable", link.textContent);
             link.textContent = "";
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to