Bug 115216

Summary: Video playback has corruption on the edges of the video
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: alokp, buildbot, commit-queue, eric.carlson, esprehn+autocc, rniwa, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://channel9.msdn.com/posts/Erik-Meijer-Immo-Landwerth-and-Andrew-Arnott-Immutable-Collections-for-NET
Attachments:
Description Flags
Patch
simon.fraser: review+, buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 none

Description Jer Noble 2013-04-25 18:06:50 PDT
"When I try and play this video, I see corruption on the edges of the video."

Regressing determined that this was caused by http://trac.webkit.org/changeset/146531.
Comment 1 Jer Noble 2013-04-25 18:11:46 PDT
RenderVideo does not paint a background color if it has a poster attribute, breaking the assumptions of RenderLayer::backgroundIsKnownToBeOpaqueInRect().
Comment 2 Simon Fraser (smfr) 2013-04-25 19:50:49 PDT
But also RenderImage::backgroundIsKnown.... doesn't deal with aspect-ratio resize that RenderVideo does.
Comment 3 Jer Noble 2013-04-26 16:34:16 PDT
Created attachment 199872 [details]
Patch
Comment 4 Jer Noble 2013-04-26 16:55:12 PDT
In a future patch, RenderImage should change it's implementation of foregroundIsKnownToBeOpaqueInRect() to take into account object-fit.
Comment 5 Build Bot 2013-04-26 21:29:27 PDT
Comment on attachment 199872 [details]
Patch

Attachment 199872 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/58666

New failing tests:
media/video-poster-background.html
Comment 6 Build Bot 2013-04-26 21:29:28 PDT
Created attachment 199888 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.2
Comment 7 Jer Noble 2013-04-26 22:21:43 PDT
The new test is failing with a 0.01% image diff.  The artifacts introduced by the .jpg version of the video frame are enough to trigger a image failure.

I've updated the test to clip out the video frame, leaving only the video background visible.  This eliminates the 0.01% image diff.
Comment 8 Jer Noble 2013-04-26 22:30:05 PDT
Committed r149232: <http://trac.webkit.org/changeset/149232>