Changeset 85943 in webkit


Ignore:
Timestamp:
May 6, 2011 6:48:58 AM (13 years ago)
Author:
apavlov@chromium.org
Message:

2011-05-06 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: editing CSS in the Resources panel and not committing does not revert the change.
https://bugs.webkit.org/show_bug.cgi?id=60319

  • inspector/front-end/ResourceView.js: (WebInspector.ResourceSourceFrame.prototype.cancelEditing):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85939 r85943  
     12011-05-06  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: editing CSS in the Resources panel and not committing does not revert the change.
     6        https://bugs.webkit.org/show_bug.cgi?id=60319
     7
     8        * inspector/front-end/ResourceView.js:
     9        (WebInspector.ResourceSourceFrame.prototype.cancelEditing):
     10
    1112011-05-06  Joe Mason  <jmason@rim.com>
    212
  • trunk/Source/WebCore/inspector/front-end/ResourceView.js

    r84629 r85943  
    149149    },
    150150
     151    cancelEditing: function()
     152    {
     153        this._clearIncrementalUpdateTimer();
     154        const majorChange = false;
     155        this._resource.setContent(this._viewerState.textModelContent, majorChange);
     156        WebInspector.SourceFrame.prototype.cancelEditing.call(this);
     157    },
     158
    151159    endEditing: function(oldRange, newRange)
    152160    {
Note: See TracChangeset for help on using the changeset viewer.