Changeset 147433 in webkit


Ignore:
Timestamp:
Apr 2, 2013 7:58:05 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: source location gets frozen after inspector reload
https://bugs.webkit.org/show_bug.cgi?id=113776

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-04-02
Reviewed by Pavel Feldman.

Put statusBarText item in its own container and update its contents in
ScriptsPanel._updateScriptViewStatusBarItems in similar way it's done
for statusBarItems.

No new tests.

  • inspector/front-end/ScriptsPanel.js:

(WebInspector.ScriptsPanel):
(WebInspector.ScriptsPanel.prototype.statusBarText):
(WebInspector.ScriptsPanel.prototype._updateScriptViewStatusBarItems):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147432 r147433  
     12013-04-02  Andrey Lushnikov  <lushnikov@chromium.org>
     2
     3        Web Inspector: source location gets frozen after inspector reload
     4        https://bugs.webkit.org/show_bug.cgi?id=113776
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Put statusBarText item in its own container and update its contents in
     9        ScriptsPanel._updateScriptViewStatusBarItems in similar way it's done
     10        for statusBarItems.
     11
     12        No new tests.
     13
     14        * inspector/front-end/ScriptsPanel.js:
     15        (WebInspector.ScriptsPanel):
     16        (WebInspector.ScriptsPanel.prototype.statusBarText):
     17        (WebInspector.ScriptsPanel.prototype._updateScriptViewStatusBarItems):
     18
    1192013-04-02  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    220
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r146749 r147433  
    148148    this._scriptViewStatusBarItemsContainer.style.display = "inline-block";
    149149
     150    this._scriptViewStatusBarTextContainer = document.createElement("div");
     151    this._scriptViewStatusBarTextContainer.style.display = "inline-block";
     152
    150153    this._installDebuggerSidebarController();
    151154
     
    195198    statusBarText: function()
    196199    {
    197         var sourceFrame = this.visibleView;
    198         return sourceFrame ? sourceFrame.statusBarText() : null;
     200        return this._scriptViewStatusBarTextContainer;
    199201    },
    200202
     
    370372    {
    371373        this._scriptViewStatusBarItemsContainer.removeChildren();
     374        this._scriptViewStatusBarTextContainer.removeChildren();
    372375
    373376        var sourceFrame = this.visibleView;
     
    376379            for (var i = 0; i < statusBarItems.length; ++i)
    377380                this._scriptViewStatusBarItemsContainer.appendChild(statusBarItems[i]);
     381            var statusBarText = sourceFrame.statusBarText();
     382            if (statusBarText)
     383                this._scriptViewStatusBarTextContainer.appendChild(statusBarText);
    378384        }
    379385    },
Note: See TracChangeset for help on using the changeset viewer.