[Webkit-unassigned] [Bug 91674] [chromium] Implement scrollbar theme for Android

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 19 09:08:45 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91674


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #153103|review?                     |review+, commit-queue-
               Flag|                            |




--- Comment #3 from Adam Barth <abarth at webkit.org>  2012-07-19 09:08:44 PST ---
(From update of attachment 153103)
View in context: https://bugs.webkit.org/attachment.cgi?id=153103&action=review

Some minor style nits below.

> Source/WebCore/platform/chromium/ScrollbarThemeChromiumAndroid.cpp:66
> +    float proportion = (float)scrollbar->currentPos() / scrollbar->totalSize();

WebKit preferes C++ style casts, so static_cast<float>(...)

> Source/WebCore/platform/chromium/ScrollbarThemeChromiumAndroid.cpp:103
> +namespace {

WebKit tends to use static functions rather than anonymous namespaces.

> Source/WebCore/platform/chromium/ScrollbarThemeChromiumAndroid.h:53
> +    static const int s_scrollbarWidth = 8;
> +    static const int s_scrollbarMargin = 5;

WebKit doesn't use the s_ prefix for static variables.  We just use bare names like scrollbarWidth (and we tend to put them in the implementation file rather than the header if they're not used outside the implementation).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list