Title: [131568] trunk/Source/WebCore
Revision
131568
Author
[email protected]
Date
2012-10-17 01:52:16 -0700 (Wed, 17 Oct 2012)

Log Message

Web Inspector: Stylesheets saved with FileManager are not saved to disk when edited from Elements panel.
https://bugs.webkit.org/show_bug.cgi?id=99554

Reviewed by Yury Semikhatsky.

Moved saving to disk from SourceFrame to UISourceCode.

* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype._commitEditing):
* inspector/front-end/UISourceCode.js:
(WebInspector.UISourceCode.prototype._commitContent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (131567 => 131568)


--- trunk/Source/WebCore/ChangeLog	2012-10-17 08:49:14 UTC (rev 131567)
+++ trunk/Source/WebCore/ChangeLog	2012-10-17 08:52:16 UTC (rev 131568)
@@ -1,5 +1,19 @@
 2012-10-17  Vsevolod Vlasov  <[email protected]>
 
+        Web Inspector: Stylesheets saved with FileManager are not saved to disk when edited from Elements panel.
+        https://bugs.webkit.org/show_bug.cgi?id=99554
+
+        Reviewed by Yury Semikhatsky.
+
+        Moved saving to disk from SourceFrame to UISourceCode.
+
+        * inspector/front-end/SourceFrame.js:
+        (WebInspector.SourceFrame.prototype._commitEditing):
+        * inspector/front-end/UISourceCode.js:
+        (WebInspector.UISourceCode.prototype._commitContent):
+
+2012-10-17  Vsevolod Vlasov  <[email protected]>
+
         Web Inspector: [Regression] SASS sources are not saved to disk.
         https://bugs.webkit.org/show_bug.cgi?id=99551
 

Modified: trunk/Source/WebCore/inspector/front-end/SourceFrame.js (131567 => 131568)


--- trunk/Source/WebCore/inspector/front-end/SourceFrame.js	2012-10-17 08:49:14 UTC (rev 131567)
+++ trunk/Source/WebCore/inspector/front-end/SourceFrame.js	2012-10-17 08:52:16 UTC (rev 131568)
@@ -647,8 +647,6 @@
 
         var content = this._textEditor.text();
         this.commitEditing(content);
-        if (this._url && WebInspector.fileManager.isURLSaved(this._url))
-            WebInspector.fileManager.save(this._url, content, false);
         return true;
     },
 

Modified: trunk/Source/WebCore/inspector/front-end/UISourceCode.js (131567 => 131568)


--- trunk/Source/WebCore/inspector/front-end/UISourceCode.js	2012-10-17 08:49:14 UTC (rev 131567)
+++ trunk/Source/WebCore/inspector/front-end/UISourceCode.js	2012-10-17 08:52:16 UTC (rev 131568)
@@ -192,6 +192,8 @@
         delete this._workingCopy;
         this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCopyCommitted, {oldWorkingCopy: oldWorkingCopy, workingCopy: this.workingCopy()});
         WebInspector.workspace.dispatchEventToListeners(WebInspector.Workspace.Events.UISourceCodeContentCommitted, { uiSourceCode: this, content: this._content });
+        if (this._url && WebInspector.fileManager.isURLSaved(this._url))
+            WebInspector.fileManager.save(this._url, this._content, false);
     },
 
     /**
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to