Closed
Bug 297503
Opened 19 years ago
Closed 19 years ago
Useless autoscroll code?
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: martijn.martijn, Assigned: martijn.martijn)
Details
(Keywords: fixed1.8.1)
Attachments
(2 files, 1 obsolete file)
2.55 KB,
patch
|
mconnor
:
first-review+
|
Details | Diff | Splinter Review |
2.55 KB,
patch
|
mconnor
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
I think I've found some autoscroll code that is absolutely useless and could be
performance undermining.
After removing this code, simultaneous downwards and sideways scrolling seems
smoother than before.
Assignee | ||
Comment 1•19 years ago
|
||
This is the code I was talking about.
Assignee | ||
Updated•19 years ago
|
Attachment #186052 -
Flags: first-review?(mconnor)
Comment 2•19 years ago
|
||
Comment on attachment 186052 [details] [diff] [review]
patch
Its not useless, in the sense that it cuts down on the amount of painting
required for each increment. Yes, its less smooth, and scrolls slower, but it
eats less CPU as well.
At the same time, this code is at least two or three years old, and we're a
consumer update cycle farther along, so lets drop this, and revisit if it
really horks CPU-deficient users.
Attachment #186052 -
Flags: first-review?(mconnor) → first-review+
Assignee | ||
Comment 3•19 years ago
|
||
Ah, ok. Thanks for the info.
That previous patch indeed did make the autoscroll go faster.
This patch should take care of that.
The minimum value that can be used in Mozilla is 10ms, see bug 123273. That's
why I went from 5 to 20 ms.
Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 186106 [details] [diff] [review]
patchv2
Mike, sorry, again asking for review...
Attachment #186106 -
Flags: first-review?(mconnor)
Comment 5•19 years ago
|
||
Comment on attachment 186106 [details] [diff] [review]
patchv2
r=me for trunk only at this point, but if we can get some reliable testing on
the trunk regarding the potential perf hit vs. the jerkiness, I think this is
quite branch-safe.
Attachment #186106 -
Flags: first-review?(mconnor) → first-review+
Assignee | ||
Updated•19 years ago
|
Attachment #186052 -
Attachment is obsolete: true
Assignee | ||
Comment 6•19 years ago
|
||
This one applies to current trunk
Assignee | ||
Comment 7•19 years ago
|
||
checked in by bz.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #196359 -
Flags: branch-1.8.1?(mconnor)
Updated•19 years ago
|
Attachment #196359 -
Flags: branch-1.8.1?(mconnor) → branch-1.8.1+
Comment 8•19 years ago
|
||
Checked in on the 1.8 branch.
mozilla/toolkit/content/widgets/browser.xml; new revision: 1.70.2.7;
mozilla/toolkit/content/widgets/preferences.xml; new revision: 1.31.2.10;
mozilla/toolkit/content/widgets/textbox.xml; new revision: 1.21.4.2;
Comment 9•19 years ago
|
||
Gavin, you also landed the patch for preferences.xml from bug 315195:
http://bonsai.mozilla.org/cvsquery.cgi?module=AviaryBranchTinderbox&branch=&date=explicit&mindate=2006-02-02+14%3A53&maxdate=2006-02-02+14%3A53
Comment 10•19 years ago
|
||
(In reply to comment #9)
> Gavin, you also landed the patch for preferences.xml from bug 315195:
> http://bonsai.mozilla.org/cvsquery.cgi?module=AviaryBranchTinderbox&branch=&date=explicit&mindate=2006-02-02+14%3A53&maxdate=2006-02-02+14%3A53
Doh, thanks for noticing Steffen, trying to keep track of the state of my branch tree has been rather difficult. Luckily that one already had approval (from dveditz and mconnor over IRC) so I'll just mark that bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•