Bug 62783

Summary: [Chromium] Draw search tickmarks on overlay scrollbars
Product: WebKit Reporter: Sailesh Agrawal <sail>
Component: New BugsAssignee: Sailesh Agrawal <sail>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, dpranke, eric, jamesr, mihaip, ojan, rsesek, thakis, tony, webkit.review.bot, yutak
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Sailesh Agrawal 2011-06-15 23:41:56 PDT
[Chromium] Draw search tickmarks on overlay scrollbars
Comment 1 Sailesh Agrawal 2011-06-15 23:45:42 PDT
Created attachment 97407 [details]
Patch
Comment 2 Sailesh Agrawal 2011-06-15 23:47:59 PDT
Adding Cole and Robert for feedback on the UI. Screenshots here:
http://www.dropmocks.com/mWaIN
Comment 3 Nico Weber 2011-06-15 23:57:40 PDT
Looks like you added me instead of Cole. I like the screenshots fwiw.
Comment 4 Sailesh Agrawal 2011-06-16 00:01:52 PDT
Trying to add Cole gets me a
   "alcor@google.com" didn't match anything
error. I sent him an email instead.
Comment 5 Sailesh Agrawal 2011-06-16 11:53:10 PDT
Got an LGTM from Cole. Please take a look.
Comment 6 Mihai Parparita 2011-06-16 13:35:19 PDT
Comment on attachment 97407 [details]
Patch

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

> Source/WebCore/platform/chromium/ScrollbarThemeChromiumMac.mm:488
> +        if (wkScrollbarPainterTrackAlpha(scrollbarPainter) >= 1.0)

Might make more sense fo the tickmarks to use the same alpha as the track alpha, so that they fade out gradually too.
Comment 7 Eric Seidel (no email) 2011-06-16 13:40:13 PDT
Comment on attachment 97407 [details]
Patch

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

> Source/WebCore/platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:61
> +void wkScrollbarPainterPaintTrack(WKScrollbarPainterRef, bool enabled, double value, CGFloat proportion, NSRect frameRect);
> +void wkScrollbarPainterPaintKnob(WKScrollbarPainterRef);

I assume this is our version of WebKitSystemInterface.h?
Comment 8 Sailesh Agrawal 2011-06-16 13:53:57 PDT
Created attachment 97488 [details]
Patch
Comment 9 Sailesh Agrawal 2011-06-16 13:54:45 PDT
> Might make more sense fo the tickmarks to use the same alpha as the track alpha, so that they fade out gradually too.

Good idea. Fixed.
 
> I assume this is our version of WebKitSystemInterface.h?

Yea.
Comment 10 WebKit Review Bot 2011-06-16 15:08:25 PDT
Comment on attachment 97488 [details]
Patch

Clearing flags on attachment: 97488

Committed r89073: <http://trac.webkit.org/changeset/89073>
Comment 11 WebKit Review Bot 2011-06-16 15:08:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Yuta Kitamura 2011-06-16 23:09:27 PDT
Hi, your change seemed to cause a compile error in our clang bots:

In file included from /b/build/slave/Mac_Clang_Builder__dbg_/build/src/third_party/WebKit/Source/WebCore/WebCore.gyp/../platform/chromium/ScrollAnimatorChromiumMac.mm:36:
../platform/chromium/ScrollbarThemeChromiumMac.h:74:10: error: 'WebCore::ScrollbarThemeChromiumMac::paintTickmarks' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
    void paintTickmarks(Scrollbar*, GraphicsContext* drawingContext, bool canDrawDirectly, float alpha);
         ^
../platform/ScrollbarThemeComposite.h:65:18: note: hidden overloaded virtual function 'WebCore::ScrollbarThemeComposite::paintTickmarks' declared here
    virtual void paintTickmarks(GraphicsContext*, Scrollbar*, const IntRect&) {}
                 ^
1 error generated.

Could you fix this at your earliest convenience?
Comment 13 Yuta Kitamura 2011-06-16 23:18:32 PDT
Reverted r89073 for reason:

Broke Chromium Clang build

Committed r89120: <http://trac.webkit.org/changeset/89120>
Comment 14 Eric Seidel (no email) 2011-06-17 09:36:45 PDT
We need a clang EWS and clang bot on build.webkit.org to stop this "this broke clang but nothing else" rollout nonsense.

This is at least the 3rd bug I've seen this happen to in the last week. :(
Comment 15 Eric Seidel (no email) 2011-06-17 09:37:37 PDT
Also, why should a build error ever cause a rollout?  I would imagine build errors are generally super-easy to fix?

Not that I'm against rollouts!  It just seems silly to do this dance every time for a clang-only build error.
Comment 16 Sailesh Agrawal 2011-06-20 16:34:05 PDT
Created attachment 97886 [details]
Patch
Comment 17 Sailesh Agrawal 2011-06-20 16:37:07 PDT
Fixed clang error.
The problem was that there was already a paintTickmarks() method in the super class. I changed the patch to use the same method signature as the super class. The patch passes the chromium clang bog:
http://build.chromium.org/p/tryserver.chromium/builders/mac_clang/builds/899

Please take another look. Thanks.
Comment 18 WebKit Review Bot 2011-06-20 18:22:19 PDT
Comment on attachment 97886 [details]
Patch

Clearing flags on attachment: 97886

Committed r89326: <http://trac.webkit.org/changeset/89326>
Comment 19 WebKit Review Bot 2011-06-20 18:22:25 PDT
All reviewed patches have been landed.  Closing bug.