Changeset 117965 in webkit


Ignore:
Timestamp:
May 22, 2012 6:50:35 AM (12 years ago)
Author:
vsevik@chromium.org
Message:

Web Inspector: JavaScript breakpoints disappear when Ctrl+S is pressed for the script without changes.
https://bugs.webkit.org/show_bug.cgi?id=87121

Reviewed by Pavel Feldman.

JavaScriptSourceFrame and StylesSourceFrame should not commit working copy unless UISourceCode is dirty.

  • inspector/front-end/JavaScriptSourceFrame.js:

(WebInspector.JavaScriptSourceFrame.prototype.commitEditing):

  • inspector/front-end/StylesPanel.js:

(WebInspector.StyleSourceFrame.prototype.commitEditing):

  • inspector/front-end/UISourceCode.js:

(WebInspector.UISourceCode.prototype.commitWorkingCopy):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117962 r117965  
     12012-05-22  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: JavaScript breakpoints disappear when Ctrl+S is pressed for the script without changes.
     4        https://bugs.webkit.org/show_bug.cgi?id=87121
     5
     6        Reviewed by Pavel Feldman.
     7
     8        JavaScriptSourceFrame and StylesSourceFrame should not commit working copy unless UISourceCode is dirty.
     9
     10        * inspector/front-end/JavaScriptSourceFrame.js:
     11        (WebInspector.JavaScriptSourceFrame.prototype.commitEditing):
     12        * inspector/front-end/StylesPanel.js:
     13        (WebInspector.StyleSourceFrame.prototype.commitEditing):
     14        * inspector/front-end/UISourceCode.js:
     15        (WebInspector.UISourceCode.prototype.commitWorkingCopy):
     16
    1172012-05-22  Ilya Tikhonovsky  <loislo@chromium.org>
    218
  • trunk/Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js

    r117799 r117965  
    9393    commitEditing: function(text)
    9494    {
     95        if (!this._uiSourceCode.isDirty())
     96            return;
     97
    9598        this._isCommittingEditing = true;
    9699        this._uiSourceCode.commitWorkingCopy(this._didEditContent.bind(this));
  • trunk/Source/WebCore/inspector/front-end/StylesPanel.js

    r117799 r117965  
    146146    commitEditing: function(text)
    147147    {
     148        if (!this._styleSource.isDirty())
     149            return;
     150
    148151        this._isCommittingEditing = true;
    149152        this._styleSource.commitWorkingCopy(this._didEditContent.bind(this));
  • trunk/Source/WebCore/inspector/front-end/UISourceCode.js

    r117799 r117965  
    212212        }
    213213
    214         if (!this.isDirty()) {
    215             callback(null);
    216             return;
    217         }
    218 
    219214        var newContent = this._workingCopy;
    220215        this._committingWorkingCopy = true;
Note: See TracChangeset for help on using the changeset viewer.