[Webkit-unassigned] [Bug 56559] Web Inspector: Scrolling and navigation is not smooth on a script with many long lines
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 17 07:53:51 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=56559
--- Comment #3 from Andrey Adaikin <aandrey at chromium.org> 2011-03-17 07:53:51 PST ---
FYI. Diff between the first and the second patches:
--- a/Source/WebCore/inspector/front-end/TextViewer.js
+++ b/Source/WebCore/inspector/front-end/TextViewer.js
@@ -844,9 +844,9 @@ WebInspector.TextEditorMainPanel.prototype = {
if (!this._scheduledPaintLines)
return;
- if (this._dirtyLines) {
- // Reschedule the timer.
- this._paintScheduledLinesTimer = setTimeout(this._paintScheduledLines.bind(this), 10);
+ // Reschedule the timer if we still can not paint the lines, or the user is scrolling.
+ if (this._dirtyLines || this._repaintAllTimer) {
+ this._paintScheduledLinesTimer = setTimeout(this._paintScheduledLines.bind(this), 50);
return;
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list