Summary: | ScrollBar::setProportion() calls updateThumbProportion() unnecessarily | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Don Gibson <dgibson77> | ||||
Component: | WebCore Misc. | Assignee: | Don Gibson <dgibson77> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 420+ | ||||||
Hardware: | PC | ||||||
OS: | All | ||||||
URL: | http://mlb.mlb.com | ||||||
Attachments: |
|
Description
Don Gibson
2006-12-04 15:00:43 PST
Created attachment 11731 [details]
patch v1
The simplest possible fix. I could have made setProportion() return a bool (like setPosition() does) or check that its arguments were positive, but I didn't have a particular reason to do so.
(In reply to comment #0) > Depending on how platforms implement updateThumbProportion(), this > can lead to anything from too much work to infinite loops. Sounds like this fix needs a layout test then (especially if the latter is the Windows behavior). Is it possible to make one? Comment on attachment 11731 [details]
patch v1
Looks fine, r=me.
|