WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28631
Chromium Linux: don't stretch checkboxes
https://bugs.webkit.org/show_bug.cgi?id=28631
Summary
Chromium Linux: don't stretch checkboxes
Adam Langley
Reported
2009-08-21 15:12:55 PDT
Currently, we'll stretch checkboxes and radio buttons to fill the given rectangle. Thus, if a site specifies width: 200px, the result looks very odd. With this patch, we match IE in positioning a 13x13 checkbox at the bottom right of the rectangle.
Attachments
patch
(3.31 KB, patch)
2009-08-21 15:16 PDT
,
Adam Langley
no flags
Details
Formatted Diff
Diff
updated
(3.14 KB, patch)
2009-11-23 16:42 PST
,
Evan Stade
levin
: review-
Details
Formatted Diff
Diff
plus test
(26.37 KB, patch)
2009-11-24 17:56 PST
,
Evan Stade
no flags
Details
Formatted Diff
Diff
html cleanup
(26.36 KB, patch)
2009-11-24 17:58 PST
,
Evan Stade
eric
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Adam Langley
Comment 1
2009-08-21 15:16:07 PDT
Created
attachment 38404
[details]
patch
Evan Stade
Comment 2
2009-11-23 16:42:03 PST
Created
attachment 43741
[details]
updated Adam seems to have forgotten this patch, so I have merged it to ToT and changed the logic to center rather than flushing bottom right (this matches what firefox appears to do). I am sending a run to the chromium layout test try bots to see if any layout test expectations need updating. I also tested to make sure that checkboxes are unchanged in the default case (e.g., gmail login screen).
Eric Seidel (no email)
Comment 3
2009-11-23 20:38:15 PST
Comment on
attachment 43741
[details]
updated Style: 226 IntRect center(const IntRect& original, int width, int height) { Does this change match other webkit ports behaviors? I would assume it does if it matches IE.
Evan Stade
Comment 4
2009-11-24 12:02:22 PST
it matches win safari, win chrome, and win ie (which are all the same presumably because they all draw checkboxes via windows system calls)
David Levin
Comment 5
2009-11-24 15:04:32 PST
Comment on
attachment 43741
[details]
updated r- for If a WebKit layout test already covers this functionality, just list it in the ChangeLog. If not, please add a simple one.
> Index: WebCore/rendering/RenderThemeChromiumSkia.cpp > +IntRect center(const IntRect& original, int width, int height) {
Brace needs to go on the next line for functions.
Evan Stade
Comment 6
2009-11-24 17:56:20 PST
Created
attachment 43819
[details]
plus test
Evan Stade
Comment 7
2009-11-24 17:58:36 PST
Created
attachment 43820
[details]
html cleanup
Eric Seidel (no email)
Comment 8
2009-11-26 21:17:31 PST
Comment on
attachment 43820
[details]
html cleanup I'm not a big fan of the name "center", but I'm not sure I have a better suggestion. The patch looks fine. We'll need results for other platforms. I'm surprised that this isn't already covered by other tests. Also, WebKit has no firm wrapping rule: + Make the default size for checkboxes/radio buttons also the maximum + size. We generally just wrap when it's convenient. :)
Eric Seidel (no email)
Comment 9
2009-12-01 13:12:07 PST
Comment on
attachment 43820
[details]
html cleanup Evan asked me via email if this could be cq'd. We could cq this, but then there are results that will be missing on the various bots and someone else will have to commit them in a separate run. It might be easier to have a committer commit this manually and grab the results off the bot. We really need some sort of try-server setup which could produce the various platform results to avoid this sort of pain. :( You can of course always request a cq by setting commit-queue=?, but I think this particular patch should be landed by hand, unless someone wants to watch the bots after the commit-queue lands it, but at that point one might as well just land it by hand. :)
Eric Seidel (no email)
Comment 10
2009-12-29 09:47:01 PST
Comment on
attachment 43820
[details]
html cleanup I'll pull the results off of the windows bot once this lands.
WebKit Commit Bot
Comment 11
2009-12-29 09:52:40 PST
Comment on
attachment 43820
[details]
html cleanup Rejecting patch 43820 from commit-queue. Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--quiet']" exit_code: 1 Running build-dumprendertree Running tests from /Users/eseidel/Projects/CommitQueueSVN/LayoutTests Testing 11853 test cases. fast/css/non-standard-checkbox-size.html -> failed Exiting early after 1 failures. 5218 tests run. 78.53s total testing time 5217 test cases (99%) succeeded 1 test case (<1%) had incorrect layout 1 test case (<1%) had stderr output Full output:
http://webkit-commit-queue.appspot.com/results/151590
Eric Seidel (no email)
Comment 12
2010-01-14 13:02:16 PST
Comment on
attachment 43820
[details]
html cleanup Test results are incorrect per the commit-queue. Sorry you got a-run-around here, but the change you're attempting to make is not one which can be made drive-by. Because it requires test results on many platforms it requires the engagement of an active committer.
Eric Seidel (no email)
Comment 13
2010-01-14 13:11:29 PST
I'll give landing this a whirl.
Eric Seidel (no email)
Comment 14
2010-01-14 13:12:18 PST
Comment on
attachment 43820
[details]
html cleanup Marking r+ again so the apply scripts work.
Eric Seidel (no email)
Comment 15
2010-01-14 13:21:26 PST
Committed
r53289
: <
http://trac.webkit.org/changeset/53289
>
Eric Seidel (no email)
Comment 16
2010-01-14 13:24:38 PST
I ended up just borrowing a trick from Chromium's book and skipping the test on platforms for which I don't have results. I should have just encouraged you to do that in the first place. I think WebKit is too scared of using the Skipped list. Yes, this particular use of it isn't very good, but it's better than turning the bots red. :) It's impractical to expect you, or anyone else, to be able to generate pixel results for all platforms with our current infrastructure.
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