Bug 152319

Summary: Legacy style scrollbars do not change color when you mouse over them if you are scrolled
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, cgarcia, commit-queue, esprehn+autocc, glenn, kondapallykalyan, mcatanzaro, simon.fraser, thorton, yoon
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Beth Dakin 2015-12-15 17:25:36 PST
Legacy style scrollbars do not change color when you mouse over them if you are scrolled

rdar://problem/23317668
Comment 1 Beth Dakin 2015-12-15 20:24:26 PST
Created attachment 267427 [details]
Patch
Comment 2 Darin Adler 2015-12-16 09:22:52 PST
Comment on attachment 267427 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=267427&action=review

Any chance we can find a way of covering this with a regression test?

> Source/WebCore/rendering/RenderView.cpp:209
> +        Scrollbar* frameScrollbar = frameView().scrollbarAtPoint(windowPoint);
>          if (frameScrollbar) {

I would probably put the definition inside the if statement.
Comment 3 Beth Dakin 2015-12-16 10:00:05 PST
(In reply to comment #2)
> Comment on attachment 267427 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=267427&action=review
> 
> Any chance we can find a way of covering this with a regression test?
> 

We have still not figured out how to test scrollbar platform appearance in regression tests, but I absolutely think we need to figure out a way. These behaviors have a way of regressing quietly and we only notice after an all-too-long time. 

I need to think about how we could actually do this. ScrollAnimatorMac is the place in the code that can know if the right thing is happening, but it doesn't currently have any mechanism to share that information. If we can think of what to share it to, we might be able to figure out test infrastructure.

> > Source/WebCore/rendering/RenderView.cpp:209
> > +        Scrollbar* frameScrollbar = frameView().scrollbarAtPoint(windowPoint);
> >          if (frameScrollbar) {
> 
> I would probably put the definition inside the if statement.

Okay!

Thanks Darin!
Comment 4 Beth Dakin 2015-12-16 10:10:00 PST
http://trac.webkit.org/changeset/194155