WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
30319
Lines on Chrome's horizontal scrollbars should be vertical
https://bugs.webkit.org/show_bug.cgi?id=30319
Summary
Lines on Chrome's horizontal scrollbars should be vertical
Evan Martin
Reported
2009-10-12 17:57:01 PDT
On Linux, the "grippies" on Webkit's horizontal scrollbars are oriented incorrectly. They should be vertical lines, perpendicular to the scrollbar's direction of travel; instead, the same code is used to draw horizontal lines for both horizontal and vertical scrollbars.
Attachments
fix lines
(1.73 KB, patch)
2009-10-12 18:22 PDT
,
Evan Martin
no flags
Details
Formatted Diff
Diff
fix drawing of lines
(1.74 KB, patch)
2009-10-13 17:32 PDT
,
Evan Martin
no flags
Details
Formatted Diff
Diff
fix drawing of lines
(2.27 KB, patch)
2009-10-13 19:12 PDT
,
Evan Martin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Tony Chang
Comment 1
2009-10-12 18:05:32 PDT
If you're feeling ambitious, you could change the painting of sliders too since it's a copy/paste of this code.
Evan Martin
Comment 2
2009-10-12 18:22:38 PDT
Created
attachment 41080
[details]
fix lines
Peter Kasting
Comment 3
2009-10-13 17:29:22 PDT
Comment on
attachment 41080
[details]
fix lines
> + if (vertical) { > + drawHorizLine(canvas, midx - 2, midx + 2, midy, paint); > + drawHorizLine(canvas, midx - 2, midx + 2, midy - 3, paint); > + drawHorizLine(canvas, midx - 2, midx + 2, midy + 3, paint);
Nit: Why not do these in (midy - 3, midy, midy + 3) order like the vertical lines? Tony's comment about also changing the slider code seems apt here.
Evan Martin
Comment 4
2009-10-13 17:31:19 PDT
I will fix the ordering. To ease rebaselining, I'd prefer to do the slider change in a separate step.
Evan Martin
Comment 5
2009-10-13 17:32:34 PDT
Created
attachment 41142
[details]
fix drawing of lines
David Levin
Comment 6
2009-10-13 17:52:28 PDT
Comment on
attachment 41142
[details]
fix drawing of lines r- on this patch for 3 reasons: 1. It does more than it says. It changes how the horizontal lines are drawn without explanation (nothing in the changelog and the bug only mentions the other direction). 2. It uses a lot of "magic" numbersy. It would be nice to make constants out of some of them to help inform the reader what they are. 3. It is unclear if there are any layout tests which cover this change.
Evan Martin
Comment 7
2009-10-13 19:12:09 PDT
Created
attachment 41145
[details]
fix drawing of lines
Evan Martin
Comment 8
2009-10-13 19:13:16 PDT
Thanks for the review! (In reply to
comment #6
)
> 1. It does more than it says. It changes how the horizontal lines are drawn > without explanation (nothing in the changelog and the bug only mentions the > other direction).
Updated the changelog.
> 2. It uses a lot of "magic" numbersy. It would be nice to make constants out of > some of them to help inform the reader what they are.
I added some constants, but I was only adjusting the way the code was already and think they make the code less readable.
> 3. It is unclear if there are any layout tests which cover this change.
I noted in the changelog that this is covered by existing tests.
WebKit Commit Bot
Comment 9
2009-10-13 20:52:12 PDT
Comment on
attachment 41145
[details]
fix drawing of lines Clearing flags on attachment: 41145 Committed
r49553
: <
http://trac.webkit.org/changeset/49553
>
WebKit Commit Bot
Comment 10
2009-10-13 20:52:16 PDT
All reviewed patches have been landed. Closing bug.
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