Title: [138383] trunk/Source/WebCore
Revision
138383
Author
[email protected]
Date
2012-12-21 08:47:13 -0800 (Fri, 21 Dec 2012)

Log Message

Unreviewed, rolling out r138237.
http://trac.webkit.org/changeset/138237
https://bugs.webkit.org/show_bug.cgi?id=105637

Regresses web inspector's editor performance. (Requested by
pfeldman on #webkit).

Patch by Sheriff Bot <[email protected]> on 2012-12-21

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorChunkedPanel.prototype._splitChunkOnALine):
(WebInspector.TextEditorChunkedPanel.prototype._repaintAll):
(WebInspector.TextEditorMainChunk.prototype.expand):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (138382 => 138383)


--- trunk/Source/WebCore/ChangeLog	2012-12-21 16:45:56 UTC (rev 138382)
+++ trunk/Source/WebCore/ChangeLog	2012-12-21 16:47:13 UTC (rev 138383)
@@ -1,3 +1,17 @@
+2012-12-21  Sheriff Bot  <[email protected]>
+
+        Unreviewed, rolling out r138237.
+        http://trac.webkit.org/changeset/138237
+        https://bugs.webkit.org/show_bug.cgi?id=105637
+
+        Regresses web inspector's editor performance. (Requested by
+        pfeldman on #webkit).
+
+        * inspector/front-end/DefaultTextEditor.js:
+        (WebInspector.TextEditorChunkedPanel.prototype._splitChunkOnALine):
+        (WebInspector.TextEditorChunkedPanel.prototype._repaintAll):
+        (WebInspector.TextEditorMainChunk.prototype.expand):
+
 2012-12-21  Ilya Tikhonovsky  <[email protected]>
 
         Various tests in media/track are intermittently crashing.

Modified: trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js (138382 => 138383)


--- trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js	2012-12-21 16:45:56 UTC (rev 138382)
+++ trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js	2012-12-21 16:47:13 UTC (rev 138383)
@@ -813,7 +813,6 @@
             lineChunk.expand();
             if (suffixChunk)
                 suffixChunk.expand();
-            this._repaintAll();
         }
 
         this.endDomUpdates();
@@ -933,7 +932,7 @@
         delete this._repaintAllTimer;
 
         if (this._paintCoalescingLevel)
-            return false;
+            return;
 
         var visibleFrom = this._scrollTop();
         var visibleTo = visibleFrom + this._clientHeight();
@@ -942,7 +941,6 @@
             var result = this._findVisibleChunks(visibleFrom, visibleTo);
             this._expandChunks(result.start, result.end);
         }
-        return true;
     },
 
     _scrollTop: function()
@@ -1363,25 +1361,6 @@
         this._isShowing = false;
     },
 
-    _repaintAll: function()
-    {
-        // calling overridden |_repaintAll| method
-        if (!WebInspector.TextEditorChunkedPanel.prototype._repaintAll.call(this))
-            return false;
-
-        var visibleFrom = this._scrollTop();
-        var visibleTo = visibleFrom + this._clientHeight();
-
-        if (visibleTo) {
-            var result = this._findVisibleChunks(visibleFrom, visibleTo);
-            for(var i = result.start; i < result.end; i++) {
-                var chunk = this._textChunks[i];
-                this._paintLines(chunk.startLine, chunk.startLine + chunk.linesCount, true);
-            }
-        }
-        return true;
-    },
-
     _attachMutationObserver: function()
     {
         if (!this._isShowing)
@@ -2679,8 +2658,10 @@
 
         this._expanded = true;
 
-        if (this.linesCount === 1)
+        if (this.linesCount === 1) {
+            this._chunkedPanel._paintLine(this.element);
             return;
+        }
 
         this._chunkedPanel.beginDomUpdates();
 
@@ -2692,6 +2673,7 @@
             this._expandedLineRows.push(lineRow);
         }
         parentElement.removeChild(this.element);
+        this._chunkedPanel._paintLines(this.startLine, this.startLine + this.linesCount);
 
         this._chunkedPanel.endDomUpdates();
     },
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to