Bug 103382 - PDFPlugin: Scroll bars do not grow on hover
Summary: PDFPlugin: Scroll bars do not grow on hover
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-11-27 02:24 PST by Tim Horton
Modified: 2012-11-27 13:57 PST (History)
4 users (show)

See Also:


Attachments
patch (11.12 KB, patch)
2012-11-27 02:39 PST, Tim Horton
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2012-11-27 02:24:00 PST
<rdar://problem/12555262>
Comment 1 Tim Horton 2012-11-27 02:24:15 PST
This also covers non-overlay scrollbars not glowing, etc.
Comment 2 Tim Horton 2012-11-27 02:39:28 PST
Created attachment 176213 [details]
patch
Comment 3 Beth Dakin 2012-11-27 13:00:34 PST
Comment on attachment 176213 [details]
patch

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

> Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:436
> +        if (magnification) {

I don't think you need these brackets.

> Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:566
> +        } else if (targetScrollbarForLastMousePosition)

Is 'else if' right here? Will there ever be a situation where you want to sent a mouseEntered for one scrollbar AND a mouseExited for another?
Comment 4 Tim Horton 2012-11-27 13:48:50 PST
(In reply to comment #3)
> (From update of attachment 176213 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=176213&action=review
> 
> > Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:436
> > +        if (magnification) {
> 
> I don't think you need these brackets.

Nope! They're a figment of debugging, sorry.

> > Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:566
> > +        } else if (targetScrollbarForLastMousePosition)
> 
> Is 'else if' right here? Will there ever be a situation where you want to sent a mouseEntered for one scrollbar AND a mouseExited for another?

Though it will rarely come up in practice, you're right.

Thanks, Beth!
Comment 5 Tim Horton 2012-11-27 13:57:53 PST
http://trac.webkit.org/changeset/135916