Title: [89806] trunk/Source/WebCore
Revision
89806
Author
[email protected]
Date
2011-06-27 01:35:54 -0700 (Mon, 27 Jun 2011)

Log Message

2011-06-27  Pavel Feldman  <[email protected]>

        Reviewed by Yury Semikhatsky.

        Web Inspector: node selection is slow in the Elements panel.
        https://bugs.webkit.org/show_bug.cgi?id=60813

        * inspector/front-end/StylesSidebarPane.js:
        (WebInspector.StylesSidebarPane.prototype.update.stylesCallback):
        (WebInspector.StylesSidebarPane.prototype.update.computedStyleCallback):
        (WebInspector.StylesSidebarPane.prototype.update):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (89805 => 89806)


--- trunk/Source/WebCore/ChangeLog	2011-06-27 08:34:01 UTC (rev 89805)
+++ trunk/Source/WebCore/ChangeLog	2011-06-27 08:35:54 UTC (rev 89806)
@@ -1,3 +1,15 @@
+2011-06-27  Pavel Feldman  <[email protected]>
+
+        Reviewed by Yury Semikhatsky.
+
+        Web Inspector: node selection is slow in the Elements panel.
+        https://bugs.webkit.org/show_bug.cgi?id=60813
+
+        * inspector/front-end/StylesSidebarPane.js:
+        (WebInspector.StylesSidebarPane.prototype.update.stylesCallback):
+        (WebInspector.StylesSidebarPane.prototype.update.computedStyleCallback):
+        (WebInspector.StylesSidebarPane.prototype.update):
+
 2011-06-26  Pavel Feldman  <[email protected]>
 
         Reviewed by Yury Semikhatsky.

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


--- trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2011-06-27 08:34:01 UTC (rev 89805)
+++ trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2011-06-27 08:35:54 UTC (rev 89806)
@@ -227,7 +227,7 @@
 
         function stylesCallback(styles)
         {
-            if (styles)
+            if (this.node === node && styles)
                 this._rebuildUpdate(node, styles);
             if (callback)
                 callback();
@@ -235,7 +235,7 @@
 
         function computedStyleCallback(computedStyle)
         {
-            if (computedStyle)
+            if (this.node === node && computedStyle)
                 this._refreshUpdate(node, computedStyle, editedSection);
             if (callback)
                 callback();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to