WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 35775
Bug 40848
[Chromium] Show scrollbar steppers on Linux
https://bugs.webkit.org/show_bug.cgi?id=40848
Summary
[Chromium] Show scrollbar steppers on Linux
xiyuan
Reported
2010-06-18 11:18:40 PDT
Per
http://crbug.com/18303
, user wants scrollbar steppers on Linux.
Attachments
Proposed patch.
(10.08 KB, patch)
2010-06-21 09:29 PDT
,
xiyuan
xiyuan
: commit-queue-
Details
Formatted Diff
Diff
Fix code style.
(10.03 KB, patch)
2010-06-21 09:49 PDT
,
xiyuan
tkent
: review-
xiyuan
: commit-queue-
Details
Formatted Diff
Diff
screenshots for a few gtk themes (human, crux, mist, hight-contrast)
(334.79 KB, image/png)
2010-06-22 10:38 PDT
,
xiyuan
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
xiyuan
Comment 1
2010-06-21 09:29:18 PDT
Created
attachment 59257
[details]
Proposed patch. The attached patch draws the steppers(aka arrows) using the colors in renderer prefs. It's still not ideal but as least user would have something to use. Talked to webkit gardeners and this change needs manually landing because a bunch of image-based layout tests need rebaseline. So no commit queue.
WebKit Review Bot
Comment 2
2010-06-21 09:29:56 PDT
Attachment 59257
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:44: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:46: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:47: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:48: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:49: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:51: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:52: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:53: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:177: thumb_hsv is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:180: track_hsv is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:200: More than one command on the same line [whitespace/newline] [4] Total errors found: 11 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
xiyuan
Comment 3
2010-06-21 09:49:32 PDT
Created
attachment 59260
[details]
Fix code style.
Tony Chang
Comment 4
2010-06-21 17:17:04 PDT
Adding some Linux people (not sure what markus' bugzilla account is). xiyuan, can you post a screen shot of what this looks like with a few different GTK+ themes? Also, it's possible for GTK+ themes to position the arrows like on a mac (arrows on the bottom of the scrollbar). Should we try to support that? It looks like clearlooks can also do 3 arrows (win style + mac style):
http://www.fr3nd.net/wp-content/uploads/2006/08/clearlooks-next-sshot1.png
Evan Stade
Comment 5
2010-06-21 17:30:06 PDT
see also <
https://bugs.webkit.org/show_bug.cgi?id=35775
>. I didn't really intend to let that patch die, but I moved on to other things and have been delinquent in getting back to it. As long as we are adding the steppers, we should fix
http://code.google.com/p/chromium/issues/detail?id=36919
as well (due to the difficulty of layout tests).
Kent Tamura
Comment 6
2010-06-22 00:00:56 PDT
Comment on
attachment 59260
[details]
Fix code style. WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:86 + drawHorizLine(canvas, rect.x(), right, rect.y(), paint); Indentatio is incorrect. WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:88 + drawVertLine(canvas, right, rect.y(), bottom, paint); ditto. WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:90 + drawHorizLine(canvas, rect.x(), right, bottom, paint); ditto. WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp:92 + drawVertLine(canvas, rect.x(), rect.y(), bottom, paint); ditto. I also think a screenshot is helpful.
xiyuan
Comment 7
2010-06-22 10:25:27 PDT
tony: unfortunately, this naive simple fix does not take care of all possible steppers. That is, it only shows one up arrow at the beginning of the scrollbar and one down arrow at the end. estade: I think your patch <
https://bugs.webkit.org/show_bug.cgi?id=35775
> is a way better fix than this. Any chance that you could get it in anytime soon? will still post screenshots in case anyone is curious. :)
xiyuan
Comment 8
2010-06-22 10:38:22 PDT
Created
attachment 59389
[details]
screenshots for a few gtk themes (human, crux, mist, hight-contrast)
Evan Stade
Comment 9
2010-06-22 13:34:13 PDT
xiyuan: sure, I can try to get it in this week.
xiyuan
Comment 10
2010-06-22 14:34:11 PDT
Thanks, Evan. *** This bug has been marked as a duplicate of
bug 35775
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug