Title: [117585] trunk/Source/WebCore
Revision
117585
Author
[email protected]
Date
2012-05-18 06:55:17 -0700 (Fri, 18 May 2012)

Log Message

Web Inspector: live edit resets cursor to 0,0
https://bugs.webkit.org/show_bug.cgi?id=86851

Reviewed by Vsevolod Vlasov.

* inspector/front-end/DebuggerResourceBinding.js:
(WebInspector.DebuggerResourceBinding.setScriptSource.didEditScriptSource):
(WebInspector.DebuggerResourceBinding.setScriptSource):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (117584 => 117585)


--- trunk/Source/WebCore/ChangeLog	2012-05-18 13:55:08 UTC (rev 117584)
+++ trunk/Source/WebCore/ChangeLog	2012-05-18 13:55:17 UTC (rev 117585)
@@ -1,3 +1,14 @@
+2012-05-18  Pavel Feldman  <[email protected]>
+
+        Web Inspector: live edit resets cursor to 0,0
+        https://bugs.webkit.org/show_bug.cgi?id=86851
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/front-end/DebuggerResourceBinding.js:
+        (WebInspector.DebuggerResourceBinding.setScriptSource.didEditScriptSource):
+        (WebInspector.DebuggerResourceBinding.setScriptSource):
+
 2012-05-18  Yury Semikhatsky  <[email protected]>
 
         Web Inspector: exception in console when pressing % button in CPU profile view

Modified: trunk/Source/WebCore/inspector/front-end/DebuggerResourceBinding.js (117584 => 117585)


--- trunk/Source/WebCore/inspector/front-end/DebuggerResourceBinding.js	2012-05-18 13:55:08 UTC (rev 117584)
+++ trunk/Source/WebCore/inspector/front-end/DebuggerResourceBinding.js	2012-05-18 13:55:17 UTC (rev 117585)
@@ -55,15 +55,17 @@
      */
     function didEditScriptSource(error)
     {
-        callback(error);
-        if (error)
+        if (error) {
+            callback(error);
             return;
+        }
 
         var resource = WebInspector.resourceForURL(script.sourceURL);
         if (resource)
             resource.addRevision(newSource);
 
         uiSourceCode.contentChanged(newSource);
+        callback();
     }
     WebInspector.debuggerModel.setScriptSource(script.scriptId, newSource, didEditScriptSource.bind(this));
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to