• timothy@apple.com's avatar
    Fix jumping to a text position when showing a resource. · 679d978c
    timothy@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=127271
    
    Reviewed by Joseph Pecoraro.
    
    * UserInterface/FrameContentView.js:
    (WebInspector.FrameContentView.prototype.showSourceCode): Just use showResponse's arguments
    which already does the same logic to call revealPosition.
    * UserInterface/ResourceClusterContentView.js:
    (WebInspector.ResourceClusterContentView.prototype.restoreFromCookie): This was the bug.
    lineNumber and columnNumber need honored here. They were only honored by FrameContentView.
    * UserInterface/ResourceSidebarPanel.js:
    (WebInspector.ResourceSidebarPanel.prototype.showSourceCode): Use showContentViewForRepresentedObject
    which also accepts a cookie and handles creating the content view for us.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    679d978c
ChangeLog 222 KB