Changeset 46337 in webkit


Ignore:
Timestamp:
Jul 24, 2009 1:22:48 AM (15 years ago)
Author:
abarth@webkit.org
Message:

2009-07-24 Joseph Pecoraro <joepeck02@gmail.com>

Reviewed by Timothy Hatcher.

Dragging a resource in the sidebar should drag it's URL
https://bugs.webkit.org/show_bug.cgi?id=14410

  • inspector/front-end/ResourcesPanel.js: (WebInspector.ResourceSidebarTreeElement.prototype.onattach):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r46336 r46337  
     12009-07-24  Joseph Pecoraro  <joepeck02@gmail.com>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Dragging a resource in the sidebar should drag it's URL
     6        https://bugs.webkit.org/show_bug.cgi?id=14410
     7
     8        * inspector/front-end/ResourcesPanel.js:
     9        (WebInspector.ResourceSidebarTreeElement.prototype.onattach):
     10
    1112009-07-24  Joseph Pecoraro  <joepeck02@gmail.com>
    212
  • trunk/WebCore/inspector/front-end/ResourcesPanel.js

    r46336 r46337  
    14541454        WebInspector.SidebarTreeElement.prototype.onattach.call(this);
    14551455
     1456        var link = document.createElement("a");
     1457        link.href = this.resource.url;
     1458        link.className = "invisible";
     1459        while (this._listItemNode.firstChild)
     1460            link.appendChild(this._listItemNode.firstChild);
     1461        this._listItemNode.appendChild(link);
    14561462        this._listItemNode.addStyleClass("resources-category-" + this.resource.category.name);
    14571463    },
  • trunk/WebCore/inspector/front-end/inspector.css

    r45786 r46337  
    769769}
    770770
     771.invisible {
     772    color: inherit;
     773    text-decoration: none;
     774}
     775
    771776.webkit-line-gutter-backdrop {
    772777    /* Keep this in sync with view-source.css (.webkit-line-gutter-backdrop) */
Note: See TracChangeset for help on using the changeset viewer.