这是indexloc提供的服务,不要输入任何密码

Changeset 49315 in webkit


Ignore:
Timestamp:
Oct 8, 2009, 1:57:26 PM (16 years ago)
Author:
eric@webkit.org
Message:

2009-10-08 Patrick Mueller <Patrick_Mueller@us.ibm.com>

Reviewed by Timothy Hatcher.

unselectable resources in resource panel
https://bugs.webkit.org/show_bug.cgi?id=30079

manual test added

Also changed the way DnD for resources in the Resources panel is
handled.

  • inspector/front-end/ResourcesPanel.js: (WebInspector.ResourceSidebarTreeElement.prototype.onattach): (WebInspector.ResourceSidebarTreeElement.prototype.ondragstart):
  • manual-tests/inspector/duplicate-resource-urls.html: Added.
Location:
trunk/WebCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49314 r49315  
     12009-10-08  Patrick Mueller  <Patrick_Mueller@us.ibm.com>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        unselectable resources in resource panel
     6        https://bugs.webkit.org/show_bug.cgi?id=30079
     7
     8        manual test added
     9       
     10        Also changed the way DnD for resources in the Resources panel is
     11        handled.
     12
     13        * inspector/front-end/ResourcesPanel.js:
     14        (WebInspector.ResourceSidebarTreeElement.prototype.onattach):
     15        (WebInspector.ResourceSidebarTreeElement.prototype.ondragstart):
     16        * manual-tests/inspector/duplicate-resource-urls.html: Added.
     17
    1182009-10-08  Brian Weinstein  <bweinstein@apple.com>
    219
  • trunk/WebCore/inspector/front-end/ResourcesPanel.js

    r49072 r49315  
    12701270        WebInspector.SidebarTreeElement.prototype.onattach.call(this);
    12711271
    1272         var link = document.createElement("a");
    1273         link.href = this.resource.url;
    1274         link.className = "invisible";
    1275         while (this._listItemNode.firstChild)
    1276             link.appendChild(this._listItemNode.firstChild);
    1277         this._listItemNode.appendChild(link);
    12781272        this._listItemNode.addStyleClass("resources-category-" + this.resource.category.name);
     1273        this._listItemNode.draggable = true;
     1274       
     1275        // FIXME: should actually add handler to parent, to be resolved via
     1276        // https://bugs.webkit.org/show_bug.cgi?id=30227
     1277        this._listItemNode.addEventListener("dragstart", this.ondragstart.bind(this), false);
    12791278    },
    12801279
     
    12871286    {
    12881287        InjectedScriptAccess.openInInspectedWindow(this.resource.url, function() {});
     1288    },
     1289
     1290    ondragstart: function(event) {
     1291        event.dataTransfer.setData("text/plain", this.resource.url);
     1292        event.dataTransfer.setData("text/uri-list", this.resource.url + "\r\n");
     1293        event.dataTransfer.effectAllowed = "copy";
     1294        return true;
    12891295    },
    12901296
  • trunk/WebCore/inspector/front-end/inspector.css

    r49310 r49315  
    827827}
    828828
    829 .invisible {
    830     color: inherit;
    831     text-decoration: none;
    832 }
    833 
    834829.webkit-line-gutter-backdrop {
    835830    /* Keep this in sync with view-source.css (.webkit-line-gutter-backdrop) */
Note: See TracChangeset for help on using the changeset viewer.