Title: [107687] trunk/Source/WebCore
Revision
107687
Author
[email protected]
Date
2012-02-14 01:24:30 -0800 (Tue, 14 Feb 2012)

Log Message

Not reviewed: follow up to r107683: protect inspector sidebar from updating
while inserting new rule.

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
(WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (107686 => 107687)


--- trunk/Source/WebCore/ChangeLog	2012-02-14 09:22:14 UTC (rev 107686)
+++ trunk/Source/WebCore/ChangeLog	2012-02-14 09:24:30 UTC (rev 107687)
@@ -1,3 +1,12 @@
+2012-02-14  Pavel Feldman  <[email protected]>
+
+        Not reviewed: follow up to r107683: protect inspector sidebar from updating
+        while inserting new rule.
+
+        * inspector/front-end/StylesSidebarPane.js:
+        (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
+        (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
+
 2012-02-14  Rick Byers  <[email protected]>
 
         Extend Chromium V8 tracing to cover more cases

Modified: trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js (107686 => 107687)


--- trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-02-14 09:22:14 UTC (rev 107686)
+++ trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-02-14 09:24:30 UTC (rev 107687)
@@ -1436,8 +1436,11 @@
             this.expand();
             if (this.element.parentElement) // Might have been detached already.
                 this._moveEditorFromSelector(moveDirection);
+
+            delete this._parentPane._userOperation;
         }
 
+        this._parentPane._userOperation = true;
         WebInspector.cssModel.addRule(this.pane.node.id, newContent, successCallback.bind(this), this.editingSelectorCancelled.bind(this));
     },
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to