Bug 25238

Summary: REGRESSION: Scrollbar hot-tracking drawn incorrectly
Product: WebKit Reporter: Peter Kasting <pkasting>
Component: WebCore Misc.Assignee: Peter Kasting <pkasting>
Status: RESOLVED FIXED    
Severity: Normal CC: hyatt
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
patch v1 adele: review+

Description Peter Kasting 2009-04-16 10:41:10 PDT
Go to a page with a vertical scrollbar (I use news.google.com).  Click once in the track just below the thumb.  Note that only half of the thumb is drawn hot.

This regressed some time before February 20, 2009 (that was the date I filed this for Chromium).
Comment 1 Peter Kasting 2009-04-16 11:31:28 PDT
I have a fix for this locally.
Comment 2 Peter Kasting 2009-04-16 11:36:06 PDT
Created attachment 29540 [details]
patch v1

Because we don't draw a hovered state if there's a pressed part, we need to make sure we invalidate any hovered part when we reset the pressed part, so that it can begin drawing its hovered state correctly.

(The "half the thumb is hot" effect from before was due to the way the track and thumb rects overlap, since we were invalidating a track piece.)
Comment 3 Peter Kasting 2009-04-17 13:42:35 PDT
Fixed in r42624.