Bug 58477

Summary: REGRESSION(r83397) [Qt] When clicking on the media elements they grow 2 pixels.
Product: WebKit Reporter: Alexis Menard (darktears) <menard>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: commit-queue, dglazkov, eric.carlson, webkit.review.bot
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 52030    
Attachments:
Description Flags
Proposed patch.
none
Proposed patch V2 with Changelog fixed.
none
Proposed patch after breakage of Chromium. none

Description Alexis Menard (darktears) 2011-04-13 14:16:47 PDT
With the Qt port, on all platforms, Qt has a custom stylesheet for the mediacontrols, extending the default one. Clicking on the play button make it grow by 2px. Since r83397 the media controls elements are actual DOM elements. Therefore the global style-sheet applies to them. html.css defines input[type="button"]:active to be border-style: inset which means that when the buttons are active they grow by their border size.
Comment 1 Alexis Menard (darktears) 2011-04-13 14:17:37 PDT
Created attachment 89454 [details]
Proposed patch.
Comment 2 WebKit Review Bot 2011-04-13 14:19:56 PDT
Attachment 89454 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexis Menard (darktears) 2011-04-13 14:21:38 PDT
Created attachment 89458 [details]
Proposed patch V2 with Changelog fixed.
Comment 4 Dimitri Glazkov (Google) 2011-04-13 14:44:43 PDT
Comment on attachment 89458 [details]
Proposed patch V2 with Changelog fixed.

Excellent fix. This takes care of "jiggling" buttons when you click on them.
Comment 5 WebKit Commit Bot 2011-04-14 06:19:52 PDT
The commit-queue encountered the following flaky tests while processing attachment 89458 [details]:

http/tests/misc/favicon-loads-with-icon-loading-override.html bug 58412 (author: alice.liu@apple.com)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2011-04-14 06:22:35 PDT
Comment on attachment 89458 [details]
Proposed patch V2 with Changelog fixed.

Clearing flags on attachment: 89458

Committed r83847: <http://trac.webkit.org/changeset/83847>
Comment 7 WebKit Commit Bot 2011-04-14 06:22:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Dimitri Glazkov (Google) 2011-04-14 08:04:31 PDT
Turns out this change was wrong. Chromium port does use borders. So this change needs to go deeper into mediaControlsQt and mediaControlsQuickTime. Let's roll this out.
Comment 9 Dimitri Glazkov (Google) 2011-04-14 08:23:45 PDT
Reverted r83847 for reason:

Chromium media controls do use button borders, so this change is incorrect.

Committed r83858: <http://trac.webkit.org/changeset/83858>
Comment 10 Alexis Menard (darktears) 2011-04-14 14:39:56 PDT
Created attachment 89652 [details]
Proposed patch after breakage of Chromium.

We need to disable borders only in ports which are not using them :D.
Comment 11 WebKit Commit Bot 2011-04-15 07:35:11 PDT
The commit-queue encountered the following flaky tests while processing attachment 89652 [details]:

http/tests/xmlhttprequest/access-control-basic-non-simple-allow-async.html bug 58663 (authors: ap@webkit.org and sam@webkit.org)
The commit-queue is continuing to process your patch.
Comment 12 WebKit Commit Bot 2011-04-15 07:38:53 PDT
Comment on attachment 89652 [details]
Proposed patch after breakage of Chromium.

Clearing flags on attachment: 89652

Committed r83973: <http://trac.webkit.org/changeset/83973>
Comment 13 WebKit Commit Bot 2011-04-15 07:38:59 PDT
All reviewed patches have been landed.  Closing bug.