| Index: WebCore/inspector/front-end/CSSStyleModel.js
|
| ===================================================================
|
| --- WebCore/inspector/front-end/CSSStyleModel.js (revision 73033)
|
| +++ WebCore/inspector/front-end/CSSStyleModel.js (working copy)
|
| @@ -164,9 +164,18 @@
|
| {
|
| var resource = WebInspector.resourceManager.resourceForURL(href);
|
| if (resource && resource.type === WebInspector.Resource.Type.Stylesheet)
|
| - resource.content = content;
|
| + resource.setContent(content, this._onRevert.bind(this, styleSheetId));
|
| }
|
| - InspectorBackend.getStyleSheetText2(styleSheetId, callback);
|
| + InspectorBackend.getStyleSheetText2(styleSheetId, callback.bind(this));
|
| + },
|
| +
|
| + _onRevert: function(styleSheetId, contentToRevertTo)
|
| + {
|
| + function callback(success)
|
| + {
|
| + this._styleSheetChanged(styleSheetId, true);
|
| + }
|
| + InspectorBackend.setStyleSheetText2(styleSheetId, contentToRevertTo, callback.bind(this));
|
| }
|
| }
|
|
|
|
|