Web Inspector: fast return upon setting the same dock side.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2012 12:55:27 +0000 (12:55 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2012 12:55:27 +0000 (12:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=100510

Reviewed by Vsevolod Vlasov.

Added fast return.

* inspector/front-end/DockController.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@132639 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/DockController.js

index f6422b2..7965673 100644 (file)
@@ -1,3 +1,14 @@
+2012-10-26  Pavel Feldman  <pfeldman@chromium.org>
+
+        Web Inspector: fast return upon setting the same dock side.
+        https://bugs.webkit.org/show_bug.cgi?id=100510
+
+        Reviewed by Vsevolod Vlasov.
+
+        Added fast return.
+
+        * inspector/front-end/DockController.js:
+
 2012-10-26  Simon Hausmann  <simon.hausmann@digia.com>
 
         Unreviewed trivial build fix: It's glXGetCurrentContext not glxGetCurrentContext :)
index 5c48cab..555a323 100644 (file)
@@ -63,6 +63,9 @@ WebInspector.DockController.prototype = {
      */
     setDockSide: function(dockSide)
     {
+        if (this._dockSide === dockSide)
+            return;
+
         if (this._dockSide)
             WebInspector.settings.lastDockState.set(this._dockSide);